P

PrepStack

Replication, Sharding and Consistent Hashing

Two ideas let a data system survive failures and grow past one machine. Replication keeps copies of the same data on several machines. Sharding (also called partitioning) splits the data so each machine holds a part. Interviewers ask which copy takes writes, what an acknowledged write guarantees, and why plain hash-mod-N breaks. After this section you can explain leaders and followers, quorums, range against hash sharding, hot partitions, and consistent hashing.

Topics in this section