← systems library
distributed systems

Consistent Hashing

Nodes and keys share a ring — adding a node remaps only its neighbor’s slice, not everything.

Hash ring — each node owns an arc hash k1 → A k2 → B k3 → C k4 → D only D’s keys remap Keysk1 · k2 · k3 · k4 hash(key)→ ring position Node Aowns arc [0,90) Node Bowns arc [90,180) Node Cowns arc [180,270) Node Downs arc [270,360) Node E (added)steals a slice of D OWNERSHIP Keys / client Node A Node B Node C Node D Node E (added) Consistent HashingNodes and keys share a ring — adding a node remaps only its neighbor’s slice, not everything.
↓ Download SVG ↓ Download spec

Considerations