Playground

Consistent Hashing

From modulo hashing to a consistent ring with virtual nodes, see why one server crash doesn't have to ruin everything.

Modulo Animation

Watch hash(req) % N assign traffic in real-time. Send requests, then kill servers to observe the catastrophic rebalancing.

Router
HASH()
Server A
MOD 0
Server B
MOD 1
Server C
MOD 2
Server D
MOD 3