Illustrative simulation. The values come from a model, not a measured production system.
Try it · consistent hash ring
Sixty restaurant menus are cached across a few nodes. Add a node, remove one, or switch on virtual nodes, then compare how many keys had to move on the ring against plain hash(key) % N.
Nodes4
Keys moved, ring0
Keys moved, hash % N0
Busiest / quietest node-
Learn the idea behind it
The demo shows what breaks. The lesson explains why it breaks, and what you give up with each fix.
- Consistent Hashing Free
This demo is free. The System Design pass (₹499) opens all 28 demos, 36 design interview problems and 75 Docker labs. See what the pass includes →