Category
saga pattern
2 articles
Saga Pattern: Coordinating Distributed Transactions with Compensation
TLDR: A Saga replaces fragile distributed 2PC with a sequence of local transactions, each backed by an explicit compensating transaction. Use orchestration when workflow control needs a single brain; use choreography when services must stay loosely c...
•14 min read
Microservices Data Patterns: Saga, Transactional Outbox, CQRS, and Event Sourcing
TLDR: Microservices get risky when teams distribute writes without defining how business invariants survive network delays, retries, and partial failures. Patterns like transactional outbox, saga, CQRS, and event sourcing exist to make those rules ex...
•12 min read
