saga
A sequence of local transactions across services, where each failed step is undone by a compensating action.
In more detail
It replaces a single database transaction once data is split across services. It gives up atomicity: other readers can see intermediate states.
Related terms
- transaction — A group of database changes that succeed or fail together, so the data is never left half-updated.
- microservice — A small, independently deployed service that owns one business capability, such as billing or notifications.
Taught in
- Monolith Versus Services: The Honest Trade Offs — Scalable System Design & Distributed Architecture