Skip to main content
03. Data & Storage/Lesson 6 of 11
10 minIntermediate10 steps

Consistent Hashing

Add or remove servers and move only a sliver of the data.

  • Servers on ring4
  • Keys moved80%
  • Biggest share25%
ABCD% 4 → % 5hash(k) % 4 → hash(k) % 5~80% of keys land somewhere newwe want ~1/5 to move
  • request
  • moving data / copies