Labs

Quorums: N, R, W

Pick N, R and W, fail some replicas, and see when a read is guaranteed to see the last write.

Fail a replica (or tap it)
When replicas are down

Every replica holds v1. The client is about to write v2.

v1R16 msR29 msR35 ms

write set (W) · read set (R) · overlap · down
write v2 / ack · read / reply · stale reply (v1) · copy still in flight

Read always sees the last write?YesR + W = 4 > N = 3 · worst-case overlap: 1
WritesOKtolerates 1 down
ReadsOKtolerates 1 down
Write waits9 ms
Read waits9 ms

R + W = 4 > N = 3: the read set always shares a replica with the last write, so the read can find the newest version.

How it's calculated · assumptions

R + W > N ⇒ every read set overlaps the last write set · writes survive N − W replicas down, reads N − R · an operation waits for the slowest replica it needs

Still not linearizable: sloppy quorums, concurrent writers and last-write-wins can return stale or lost data. Dynamo's common (N, R, W) is (3, 2, 2): overlap, and one replica down is tolerated for reads and writes.

Replica latencies are illustrative. The write is acked by the first W healthy replicas; the read shows the worst case, the R healthy replicas furthest from it. Facts from the replication, consistency models and key-value store concepts (Dynamo, SOSP 2007). Animation: writes go to all N and the coordinator waits for W acks; the worst case is drawn, so the copies outside the write set arrive only after the read. Its timing is illustrative.