Data & storage · Intermediate · 9 min

Consistent Hashing

Inspect a membership change and distinguish key movement from workload balance.

STEP 1 / 10
Change a modulo-based fleet — isometric concept diagramMembership changes can create substantial movement. Components: 1. Keyed requests. Representative clients, not a literal user count; 2. Placement map. Logical component or processing boundary. Connections: 1. Keyed requests to Placement map: Change a modulo-based fleet; 2. Placement map to Keyed requests: Reply: Placement map. Illustrations are conceptual, not deployed capacity or user counts.Keyed requests → Placement map: Change a modulo-based fleet1Placement map → Keyed requests: Reply: Placement map2Keyed requests: Representative clients, not a literal user count1Keyed requestsRepresentative clients, not aliteral user countPlacement map: Logical component or processing boundary2Placement mapLogical component or processingboundary
1Keyed requests2Placement map
  1. 1Keyed requests → Placement mapRequestChange a modulo-based fleet
  2. 2Placement map → Keyed requestsReplyReply: Placement map

Conceptual illustration · figures do not imply user counts, deployed capacity or replica counts.

2 components visible · Keyed requests + Placement map highlighted

Orange: request / query · Blue: reply · Purple: event / control · Arrows show direction; speed is illustrative.

You’ll learn

  • A placement rule maps a key to an owner.
  • Virtual slots and physical capacity are different quantities.
  • A membership update needs a serving transition contract.

PUT THE IDEA TO WORK

From learning to practice

RELATED PATTERNS

Explore architecture patterns ↗

Further reading

Amazon Dynamo paper ↗