All Questions
Sharding medium

In a standard 'Modulo Sharding' setup (`key % N`), what is the primary consequence of adding a new server to the cluster (increasing N from 10 to 11)?

  1. A Only a small fraction (roughly 1/11th) of the existing keys will need to be moved to the new server.
  2. B The new server will remain empty until you manually re-route new traffic to it.
  3. C The existing routing logic will instantly break, causing a total cluster outage until the rehash is complete.
  4. D Nearly every existing key in the entire cluster will now result in a different modulo remainder, requiring massive data movement and churn.

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

Get the app

Related questions