Distributed transactions
Keeping data correct when one business operation spans several services and databases.
Start with SagaMicroservices Patterns
All distributed transactions posts
pattern 01
2026-10-17·8 min read
Saga
Chain of local transactions with compensations on failure.
pattern 02
2026-10-17·7 min read
Two-Phase Commit (2PC)
Coordinator runs prepare, then commit or abort across all participants.
pattern 03
2026-10-17·6 min read
Three-Phase Commit (3PC)
Adds a pre-commit phase to reduce 2PC blocking.
pattern 04
2026-10-17·7 min read
Try-Confirm/Cancel (TCC)
Reserve first, then confirm or cancel.
pattern 05
2026-10-17·7 min read
Compensating Transaction
Undoes a completed step with an opposite action.
pattern 06
2026-10-17·7 min read
Eventual Consistency
Data syncs over time instead of instantly.
pattern 07
2026-10-17·6 min read
Reservation
Temporarily holds a resource with an expiry.
pattern 08
2026-10-17·7 min read
Process Manager
Stateful router driving a multi-step workflow.
pattern 09
2026-10-17·6 min read
Routing Slip
Message carries its own list of steps.