About this question
Medium · Algorithms & Data Structures · Quant Trader interview question · consistent-hashing, load-balancing, algorithms, data-structures
You are designing a distributed caching system. You need to choose between modular hashing and consistent hashing for distributing keys across your cache servers. A key requirement is minimizing disruption when servers are added or removed from the cluster. Why is consistent hashing generally preferred over modular hashing when the number of servers changes in a distributed caching system?