All Questions
Caching medium

In a cluster using Consistent Hashing, you add a new node. What portion of keys are remapped (invalidated)?

  1. A Almost all keys (proportionally N/N+1) are remapped to new servers, leading to a massive, system-wide cache miss spike.
  2. B None of the keys are remapped; instead, every active key is duplicated across the entire cluster to ensure high availability.
  3. C Only a small fraction (roughly 1/N) of total keys are re-mapped to the new node, minimizing the impact on the hit ratio.
  4. D Keys are permanently assigned to their original nodes and are only remapped if they reach their expiration timestamp.

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

Get the app

Related questions