SystemKit

The rule W + R > N is easy to repeat and easy to misapply. It describes when the replicas a read asks must overlap the ones that took a write, and it says nothing about what you give up to get that guarantee.

Set N, W, and R, take replicas down, and predict the outcome. The lab computes the exact chance that a read misses the latest write in the worst case, and how many failures reads and writes can each survive.

Can this quorum return stale data?

A write was just acknowledged by W replicas, and the others haven’t caught up yet. A read now asks R replicas. Set N, W, and R, take replicas down, and predict what the read can see.

3
1
1

Select a replica to take it down or bring it back

With N=3, W=1, R=1, can a read return the older value?

Commit to an answer first. Being wrong here is the useful part.

What this model assumes
  • Worst case: exactly W replicas hold the write, and nothing has caught up yet. Real systems usually converge within moments through background replication and read repair.
  • A read chooses R replicas evenly from those that are reachable.
  • Replicas that fail keep whatever they had, and new writes in this model need W reachable replicas.
  • An overlapping quorum isn’t the same as linearizability: concurrent writes, partial failures, and sloppy quorums can still produce surprises. See the Key-Value Store and Consensus chapters.

This lab goes with a lesson: Choose read and write acknowledgments