M
M
MaxMusterman2022-01-09 19:03:45
Service Oriented Architecture
MaxMusterman, 2022-01-09 19:03:45

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

1 answer(s)
A
Artemy, 2022-03-04
@MetaAbstract

Functionally associate an image ID with a product ID. Partial verification will be possible.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question