Concept
Saga
A saga is a business transaction that spans several services, carried out as a sequence of local transactions. There is no single rollback: if a later step fails, the saga runs compensating actions that undo the earlier steps, such as releasing reserved stock. Each step and each compensation has to be safe to repeat.
- Reserve stock (succeeds)
- Charge card (fails)
- Release stock
- Order cancelled
Where you'll see it
Related concepts
Sources: Garcia-Molina and Salem: Sagas (1987, PDF) ↗ · Report a problem
The definition is in our own words.