hardStudy question · answer published in System Design interview questions, so no pointshash-mapsystem-designdistributed-systems
Adding a cache server without reshuffling
Cache keys are assigned with server = hash(key) % N. Going from 4 to 5 servers moves most keys and causes a flood of cache misses. What reduces this?
Discussion 0
Join free to post in the discussion.
Related questions
- Average cost of a hash map lookupBackend Developer
- Worst case for a hash map lookupBackend Developer
- Removing duplicates with a SetBackend Developer
- Number keys in a plain objectBackend Developer
- Iteration order of a MapBackend Developer
- When to choose Map over a plain objectBackend Developer
- Set of look-alike objectsBackend Developer
- Counting letters in a wordBackend Developer