Understanding and implementing choreography
Choreography is a method of coordinating sagas where participating services used messages or events to notify each other of completion or failure. In this model, the event broker sits in between the services but does not control the flow of messages or the flow of the saga. This means that there is no central point of reference or control, and each service is simply watching for a message that acts as a confirmation trigger for it to start its operation.
Figure 8.2 shows the choreography flow:
Figure 8.2 – An application request sends a message to the queue to inform the first service in the saga to begin, and messages flow between all participating services
The main takeaway from the choreography model is that there is no central point of control. Each service will listen to events and decide whether it is time to take an action. The contents of the message will inform the service it should act and...