Saga.
also: sagas · saga pattern · saga patternsA distributed transaction as a sequence of local transactions, each with a compensating action that undoes it if a later step fails.
the two-minute refresher
- T1 → T2 → T3, each a local transaction in one service.
- If T3 fails, run compensations C2 then C1 to undo the earlier steps.
- No distributed locks: each step commits on its own, so others can see intermediate states.
- Coordinated by events (choreography) or a central orchestrator.