Ravi Sir's Cards › AWS
Saga for distributed txns
This revision card explains Saga for distributed txns. It starts from the need that cross-service money moves fail halfway without an undo plan. A saga is a long-lived business transaction with compensations per step. The how-to section notes model forward steps , then add Catch/compensate , then timeouts on waits. An example on the card is neha Kulkarni sketches reserve, then charge, then ship before writing ASL.
Read card text
What this card says
Why do we need it?
Cross-service money moves fail halfway without an undo plan.
What is it?
A saga is a long-lived business transaction with compensations per step.
compensation
How to do it
Model forward steps → add Catch/compensate → timeouts on waits.
Example
Neha Kulkarni sketches reserve→charge→ship before writing ASL.