5 questions to test your understanding
A distributed cache has 10 servers and uses hash(key) % 10 to assign keys to servers. A new server is added, making 11 total. Approximately what fraction of keys must be remapped?
A consistent hashing ring has five servers at widely spaced positions. One server owns 5% of the ring, another owns 60%. Which technique addresses this load imbalance?
With consistent hashing, when a node is added to or removed from the ring, only keys in a contiguous arc of the ring need to be reassigned.
A cluster using consistent hashing will experience a near-total cache miss storm when a node is added, just like modular hashing, because most hash values need to be recomputed.
Explain why consistent hashing is described as 'elastic' — what property makes it fundamentally better suited to horizontally scalable distributed systems?