I want to plan a solution that manages rich data in my architecture.
To be more clear, I have dozens of microservices.
let them say - the country, the building, the floor, the worker.
Everything works on a separate NoSql data warehouse.
When I receive data from the employee service, I also want to provide the gender name (worker works), the name of the building and the name of the country.
Solution1.
The client will request all microservices.
The problem is multiple requests and informing the client about the structure.
I know that several requests should not bother me, but I think it is better to use json describing the object in one call.
Solution 2:
Create an orchestration that retrieves data from multiple services.
The problem is if the data (object names, for example) are not stored in one document in the database, it is very difficult to sort and filter these fields.
Solution 3.
Before saving the object, for example. employee, call all other services and fill in the relevant data (building name, country name).
The problem is when the name of the building is changed, it is not reflected in the workplace.
4.
( , ).
, .
.
, , , , .
:
, .
, ( ), .
5.
. Fileter ElasticSearch.
: ES