Consistent hashing
The core idea
Consistent hashing assigns keys to owners while limiting which assignments change when owners join or leave.
For a cache, unnecessary reassignment creates misses.
In this lesson
- Why changing the divisor is disruptive
- Insert one point
- Virtual nodes distribute the intervals
- Change membership yourself
- Routers must agree on the rule
Continue reading
Pro unlocks video lessons, visual walkthroughs, full notes, diagrams, case studies, and implementations across the System Design archive.