Distributed Microservices Transaction — Orchestrator & Choreographer Saga
Problem Statement :- Transaction management in online reservation system.
What is Saga?
- Saga is long story with multiple events. Here, a saga is a sequence of local transactions.
Design Patterns:- Orchestrator Saga, Choreographer Saga
Domains:- Reservation Details, Inventory Details, Payment Details
Commands:- Inventory Blocked, Reservation Captured, Customer Validated, Payment Processed.
Orchestrator Saga Class:- Reservation Saga
Services:- Reservation, Inventory, Customer, Payment
If you like the article, please clap for it. Also, share the article with your friends.