Consistent hashing
A way to assign keys to servers so that adding or removing a server moves only about 1/N of the keys.
Definition
Servers and keys are hashed onto the same ring, and each key belongs to the next server clockwise. With modulo placement, changing the number of servers remaps almost every key; with a ring, only the keys next to the changed server move. Virtual nodes give each server many points on the ring to balance load.
In practice
Adding an eleventh cache server moves about 9% of keys instead of 91%, so the database doesn't get a stampede.
Learn it in context
Lessons that use this term.