Distributed .NET Core - Episode 4 [Asynchronous microservices integration via events]


In the fourth episode, we make use of the events (being sent to the message bus) in order apply asynchronous integration between microservices. Such technique removes temporal coupling and increases resiliency.


One question
How to deal with this situation

Two Services

When we create the customer at the same time we create a copy of the customer in ORDERS
because we subscribe to the EVENT create customer

We have to do something with ORDERS and but in the meantime, the new customer is added - how to synchronize the customers in ORDERS with the customers in CUSTOMERS service?
somehow on startup?

thank you for the answer


Correct me if I’m wrong. When you create customer in customer service it means that she/he does not have any order created before. Validation should not pass in that case while creating an order. So why do you need such customer data this time in orders service?