Every copy of the data raises two questions: who may change it, and what a reader sees while the copies disagree. Five lessons cover the replication schemes, quorums, the consistency models an interview uses, CAP and PACELC said precisely, and what happens when two writes collide.
5 lessons
Partitioning, in the last chapter, gave each piece of data one home. Replication gives it several, and every copy beyond the first is a promise that has to be kept across a network. The data survives a lost machine, reads spread over more nodes, and a copy can sit near the reader. In exchange, the copies can disagree, and every design has to say what happens when they do.
The chapter follows the questions in the order an interviewer tends to ask them. Who takes writes, and when a write counts. How a leaderless store counts replicas, and where the count stops protecting you. Which promise each operation needs about what a read returns. What the cut-off side of a network split does, and what consistency costs on a day with no split at all. And when two writes to one record collide, what survives.
The questions every replicated design answers
Who takes writesone, many or no leader
→
When a write countssync, async, W of N
→
What a read may returna model per operation
→
What survives a collisiona stamp, a merge, a person