Question 12 of 15 · CIE-1 QB · 2 marks
Open in ChatGPTWrite a short note on Distributed Commit.
Distributed commit decides atomically whether a transaction spanning several nodes commits or aborts everywhere.
- Need: a partial commit leaves replicas inconsistent.
- Two-phase commit: prepare (vote), then commit or abort.
- Three-phase commit: adds a pre-commit phase to remove blocking.
- Coordinator: collects the votes and announces the decision.
- Guarantee: all-or-nothing across every participant.