Skip to content

Consistent Hashing ​

CompleteSystem Designdistributedinterview Created Sep 20, 2026 · Updated Sep 26, 2026

The problem ​

With hash(key) % N, adding or removing a node remaps almost every key.

The ring ​

Place nodes and keys on a ring; each key belongs to the next node clockwise. Adding a node only moves the keys between it and its predecessor.

Virtual nodes ​

Give each node many positions on the ring to even out the load.

Used in ​

Distributed caches, and rate limiters that shard their counters across nodes.

Linked from

Rate Limiter