Related prerequisite: safe retries of local effects, not a scored cross-service saga.
Architecture · Intermediate · 10 min
Sagas & Distributed Transactions
Track an order across services and define compensation for partially completed work.
1Traveller2Trip coordinator3Flight service
- 1Traveller → Trip coordinatorRequestPartially complete a booking
- 2Trip coordinator → TravellerReplyReply: Trip coordinator
- 3Trip coordinator → Flight serviceRequestPartially complete a booking
- 4Flight service → Trip coordinatorReplyReply: Flight service
Conceptual illustration · figures do not imply user counts, deployed capacity or replica counts.
3 components visible · Traveller + Trip coordinator + Flight service highlighted
Orange: request / query · Blue: reply · Purple: event / control · Arrows show direction; speed is illustrative.
You’ll learn
- Persist which steps have actually completed.
- Compensation is not database rollback across services.
- Recovery work has its own failure modes.
PUT THE IDEA TO WORK

