Pattern 03 / DATA
Consistent Hashing
Use this when redistributing too much data when nodes join or leave a cluster.
- Pressure
- Redistributing too much data when nodes join or leave a cluster
- Mechanism
- Place nodes and keys on a hash ring; each key belongs to the next node clockwise, often with virtual nodes
- Toll
- More complex than modulo hashing and still needs virtual nodes to balance load
