Distributed Systems · Data across services
Sagas
A saga splits a business transaction across services into local transactions, each with a compensating action. Nothing is locked across services, but anyone can see its half-finished states.
- Time22 min
- LevelSenior
- Experiments1 live
- Check6 questions






Charge card the payment service charges ₹1,200 with key
Reserve stock the inventory service finds none left and refuses.
Cancel and apologize compensation for step 1: order CANCELLED, apology email queued.
Compensable steps can be undone by a compensating action; run first.