Subjects Questions Quizzes Pricing
Intermediate Open Pro

Modulo Hashing Failure

A distributed cache uses simple modulo hashing: server = hash(key) % N. The system has 4 servers and is handling 1 million cached keys. A 5th server is added.

  1. How many keys are remapped to a different server?
  2. What is the impact on the system, and why is consistent hashing better?
← Back to Consistent Hashing practice