Saga Pattern
A sequence of local transactions with compensations on failure. A data management pattern in the Data Patterns catalog. With Java/Spring code.
A sequence of local transactions with compensations on failure.
- Family
- Data Patterns
- Category
- Data Management
- Source
- Designing Data-Intensive Applications · Building Microservices
Where it appears
- Saga: Compensating a Failed Checkout — Simulation
More data management patterns
- Transactional Outbox — Write the event in the same DB transaction, publish it afterwards.
- CQRS — Separate the write model from read models.
- Event Sourcing — Store state as an append-only sequence of events.
- Cache-Aside — Read from cache, fall back to the database and populate the cache.
- Idempotency Key — A client-supplied key that makes a request safe to repeat.
- Change Data Capture — Stream every database change as an event.