Distributed Microservices Transaction — Orchestrator & Choreographer Saga

Sujit Udhane
Feb 21, 2021

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

Choreographer Saga
Orchestrator Saga

If you like the article, please clap for it. Also, share the article with your friends.

--

--

Sujit Udhane

I am Lead Platform Architect, working in Pune-India. I have 20+ years of experience in technology, and last 10+ years working as an Architect.