All Questions
Sharding hard

If Shard A fails in a large cluster, and its incoming traffic is automatically re-routed to Shard B, what is the risk of a 'Cascading Failure'?

  1. A Shard B, suddenly receiving its own load plus the added load from Shard A, may also crash, triggering a domino effect that brings down every shard in the cluster.
  2. B The existing data on Shard B will be automatically deleted to make room for the incoming data from Shard A.
  3. C Latency on Shard B will actually improve because it can now parallelize multiple workloads more effectively.
  4. D The database router will simply drop all incoming requests rather than overloading any other physical hardware.

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

Get the app

Related questions