All Questions
Sharding hard

Why is the classic 'Two-Phase Commit' (2PC) protocol generally considered a 'scalability killer' in large sharded database clusters?

  1. A It requires the use of IPv6 and specialized network hardware to coordinate the voting phase.
  2. B It provides 'Snapshot Isolation' which is fundamentally incompatible with sharded row-level locking.
  3. C It creates a massive security hole where any node can masquerade as the central coordinator.
  4. D It is a synchronous, blocking protocol. If even one shard is slow or temporarily unreachable, the entire cluster faces a 'Lock Exhaustion' crisis, hanging all other shards.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions