All Questions
Scaling Writes medium

You are sharding data across 10 nodes using standard Modulo Hashing (`id % 10`). You add 1 new node (Total 11). What happens to the write distribution?

  1. A Nothing changes.
  2. B Only 10% of the data moves.
  3. C Almost ALL keys (approx 90%) are remapped to different nodes because the divisor changed, causing a massive data migration storm.
  4. D The system pauses for 1 hour.

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

Get the app

Related questions