2026 field guide

Refreshed for cloud-native, multi-region, streaming, and AI infrastructure.

Explore 41 concepts →
Search DistillSys

Find a concept

Type at least two characters to search lessons, designs, papers, and interview prep.

Partitioningintermediate6 min read

Rendezvous Hashing

Assign keys to nodes with minimal movement, simple ranking, and natural support for replicas and capacity weights.

2–5 minute refresher
Mental model

Every key independently ranks the same node list; the highest-scoring eligible nodes own it.

30second
refresher
Highest Random Weight, or rendezvous hashing, computes a deterministic score for each key-node pair. The node with the highest score owns the key; the next scores provide replica placement.

What problem does it solve?

Modulo hashing remaps most keys when membership changes. Ring-based hashing limits movement but introduces tokens, virtual nodes, and ring-management complexity.

How it works

  1. Combine the key and each eligible node ID.
  2. Hash each pair into a stable score.
  3. Apply capacity or locality weighting if needed.
  4. Choose the top score for primary ownership.
  5. Choose the next distinct failure domains for replicas.
Decision guide

Key trade-offs

ChoiceWhat you gainWhat it costs
Score every nodeSimple and exact placementO(nodes) lookup
Candidate subsetsFaster large-fleet lookupMore design complexity
Weighted scoresCapacity-aware balanceWeight changes move data
What happens if?

Membership views disagree

Two clients rank different node sets and route the same key to different owners. Deterministic hashing cannot compensate for inconsistent membership or stale failure-domain metadata.

Where it appears

  • CDN caches
  • Sharded services
  • Storage placement
  • Load balancers
Senior interview modeWhen would you prefer rendezvous hashing over a hash ring?Show answer
When the node set is modest, ranking simplicity matters, or replica selection and weighted placement are first-class. Rings can be preferable when node counts are enormous and optimized lookup structures already exist.
#rendezvous hashing#HRW#placement#rebalancing