Problem
Hash-based partitioning (`hash % N`) remaps almost all keys when N changes. Consistent hashing moves only K/N keys.
Also known as: consistent-hash, hash-ring, ketama, rendezvous-hashing
Distribute keys across nodes with minimal reshuffling when nodes join/leave, using a hash ring with virtual nodes.
Hash-based partitioning (`hash % N`) remaps almost all keys when N changes. Consistent hashing moves only K/N keys.
None — algorithm
Low — monitor distribution
Medium — ring, vnodes, replication
Hot key: single key → one node overwhelmed
Node failure: keys redistributed, temporary load spike
Skew: poor hash function or too few vnodes
Replication lag: replica not caught up on failover