Price a replication factor
Read capacity, write capacity, write work and storage for N replicas, and the read/write ratio that Capacity Estimation taught you to measure, which decides whether that trade pays.
Replication is bought in three currencies — write work, latency and staleness — and the course prices each. Reads scale by N and writes do not; a synchronous write waits for the slowest replica and a quorum for the W-th fastest; a follower read is stale with a probability read off the lag distribution; and “consistency” becomes a count — of concurrent pairs in a vector-clock diagram, of valid linearizations of a history, of updates a last-writer-wins merge throws away.
Overview
By the end you can price a replication factor in four currencies, read a staleness probability off a lag distribution, decide whether a quorum configuration overlaps, and turn three consistency questions into counts you can check.
Read capacity, write capacity, write work and storage for N replicas, and the read/write ratio that Capacity Estimation taught you to measure, which decides whether that trade pays.
The p99 of a synchronous write as the maximum of N − 1 replicas, the p99 of a quorum as the W-th fastest, and the probability a follower read at delay t is stale.
Whether (N, R, W) overlaps and by how much, the miss probability when it does not, and the fault tolerance and availability of a majority.
Lamport and vector timestamps from a message diagram with the concurrent pairs counted, the valid linearizations of a short history enumerated, and the updates a last-writer-wins merge discards against a counter CRDT that discards none.
Lessons
What replication costs first, then its two latencies and its staleness, then quorums, and last the three questions that turn “consistent” into something countable.
Latency and the tail and availability and failure from this path, plus combinations, the pigeonhole principle, partial orders, permutations, the binomial distribution, computing probabilities and independence from discrete mathematics.
Compute the binomial tail in “Quorum Latency: the W-th Fastest” before reading its conclusion. That more replicas make a fixed-W quorum faster is the one result on this course that most readers refuse until they have computed it.
Draw the message diagram yourself before stamping it. Vector clocks are mechanical once the happens-before edges are on the page and confusing before.
Take the six-operation cap on the linearizability lab seriously. It is there because the enumeration is factorial, and that fact is a lesson about why real checkers do not enumerate.
Consensus log mechanics — Raft replication, snapshots, membership change. Only the quorum arithmetic, majority availability and election timing are here.
Transactions and isolation levels; CAP and PACELC as slogans. What this course carries instead are the measurable consequences — lag, staleness, overlap and the sloppy-quorum miss.
CRDT design beyond the counter of “Conflict Resolution, Counted”.