System Design · Senior · Question 59 of 75
Why is two-phase commit rarely used across microservices?
- ✓Correct answer: It blocks participants while waiting for the coordinator, reducing availability; sagas with compensations are preferred
- 2It's not supported by HTTP
- 3It loses data by design
Explanation
If the coordinator fails at the wrong time, participants hold locks until it recovers.