The ring
The ring only rehomes 1/N of the keys when a server dies. So why does everyone run two hundred virtual nodes per server?
Sixteen servers sit at points around a circle, and every key walks clockwise to the first server it meets. The bars show how many keys each one ended up holding, against a fair share at the halfway mark. Add more points per server and watch the bars level out while the rehoming figure barely moves.
Preparing for interviews? The ten-week plan puts this in order with DSA and the design rounds.
Included with a plan
This lab is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.
See plansAlready a member? Sign in
Or start free: a free account opens lessons 2 and 3 of every track.
the lesson Splitting the ledger (sharding)
The whole idea this lab came from, told start to finish.
on the path Module 1 of 32 in System Design: The stall gets famous
The lessons, boards and videos around this lab, in reading order.
see also Dynamo: Amazon's Highly Available Key-value Store and Consistent Hashing and Random Trees in Papers.