Pattern 44 / CONSENSUS
Two-Phase Commit (2PC)
Use this when committing one transaction atomically across multiple participants.
- Pressure
- Committing one transaction atomically across multiple participants
- Mechanism
- Coordinator asks participants to prepare, then tells all to commit or abort
- Toll
- Blocking behavior, coordinator failure modes, and poor fit for long workflows
