We have already implemented choreography in previous chapter. Let's discuss a bit more about it and find out why orchestration is better than choreography when you need to implement complex business workflows or processes.
Choreography and orchestration
Choreography
Through the publication and subscription of events, we have implemented the booking table workflow in Chapter 12, Transaction Management. In the saga implementation, we just used two services to demonstrate the distributed sagas. However, when you implement complex workflows or want to scale with growing business scenarios, it becomes difficult due to the following reasons:
- You need to code the flow in multiple microservices. For example, we implemented the...