This is an example of Saga Patten wrote in Java and using RabbitMQ. There are two type of architecture for this pattern: Choreography and Orchestration. For this example I used Choreography one.
- https://microservices.io/patterns/data/saga.html
- https://blog.couchbase.com/saga-pattern-implement-business-transactions-using-microservices-part/
- https://medium.com/@so3da/transactions-and-failover-using-saga-pattern-in-microservices-architecture-baf5a13111c9
- Add all services to docker-compose.yaml