Answer the question
In order to leave comments, you need to log in
Data validation between microservices?
Tell comrades how to do it right.
There is a microservice, let's say goods and images. Instead of products, there can be, for example, users.
When creating an object in the first microservice (products), we fill in the data. Loading pictures. Pictures are loaded into the second microservice (images) - the IDs of the uploaded images come in response. These identifiers are then added to the product data and sent to the first microservice. The data is saved, pictures (by ID) are linked to the product.
The question arises, how can I check in the microservice of products that the IDs are loaded for this object, and not someone else's identifiers are substituted? Naturally, you want this without an internal request from the first microservice to the second.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question