Problem Statement
What is the main benefit of consistent hashing for shard routing?
Explanation
Consistent hashing maps keys to a ring so only a fraction of keys remap on topology change, easing resharding.
Evenness improves with virtual nodes, but perfect balance is not guaranteed without monitoring.
Code Solution
SolutionRead Only
node slots: N virtual nodes per physical shard on the hash ring
