As an example you will have two microservices (contrived instance):
- Clients service
- Dashboard service
Within the prospects service, you handle all points associated to prospects (tackle, preferences, no matter). Within the dashboard software, there is a map you need to show displaying the entire names of consumers and their places. In different phrases, the dashboard service cares a couple of subset of the shopper data (particularly buyer identify and buyer location).
My understanding is that it is an anti-pattern for the dashboard service to synchronously talk with the shoppers service at any time when it wants buyer information to point out the map. So as a substitute you will have a knowledge retailer within the dashboard service’s database with the shoppers and their location. When a buyer is up to date, an integration occasion is fired from the customer support and all downstream techniques (aka. dashboard service) would get up to date.
- Am I largely right in my evaluation right here or is there a greater solution to go about this?
- How would the dashboard service fetch the preliminary information of the entire buyer’s places?