Choreography:- decision logic is distributed. (async)
The process is mainly used for the Asynchronous operation.
A Choreography Pattern can be used when the process flow is simple.
Process
- A customer places an order this order is inserted into RabbitMQ.
- Order Service will be listening to the RabbitMQ Order queue as it gets’s message it will process the order and insert another message into the RabbitMQ Payment Queue.
- Payment Service Consumers will be listening to the Payment Queue as it gets the message it will process it and then insert another message into the Inventory Queue.
- Inventory Service Consumers will be listening to the Inventory Queue it will subtract an ordered item from Inventory and then insert another message into the Shipping Queue.
- Shipping Service Consumers will be listening to the Shipping Queue will process shipping to the customer and then will add another message to the Customer Queue. This message will be of process completion.
- Customer Consumers will be listening to the message inserted by the shipping Service. As it receives a message of completion will update the Order as Completed.
we are trying to connect with you but you seem to be away any queries you have.
