02Chapter 2: A consistency model is a contract on historiesThis chapter assumes you know what a replicated key-value store is and can read short Python. The previous chapter explained why replication creates consistency questions. Here we define what a consistency model is. Later chapters cover each model in detail, so this one only sets up the vocabulary a6 min read
03Chapter 3: Linearizability: behaving like a single copyThis chapter assumes you know what replication is, that a consistency model is a contract on histories, and that you can read short Python. The previous chapters covered those ideas. Here we define the strongest common contract for single objects, show how to check a history against it, and note whe6 min read
04Chapter 4: Sequential consistency: one order, no real-time guaranteeThis chapter assumes you know what replication is and why replicas can disagree. It also assumes you have read the previous chapter on linearizability, and that you can read short Python programs. Here you will learn what sequential consistency promises, what it drops compared with linearizability, 6 min read
05Chapter 5: The CAP theorem: what it says and what it does notThis chapter assumes you know what linearizability is (a system that behaves like a single copy of the data, as covered earlier), that replication keeps copies of data on several machines, and that you can read short Python programs. CAP is quoted constantly and misquoted almost as often. The goal h6 min read
06Chapter 6: PACELC: latency versus consistency when there is no partitionThis chapter assumes you know what linearizability and eventual consistency mean, and that you have read the CAP chapter. You should also be comfortable with replication and with reading short Python programs.6 min read
07Chapter 7: Eventual consistency and its anomaliesThis chapter assumes you know what replication is, that a consistency model is a contract on histories, and that linearizability is the strongest common contract. You should be comfortable reading short Python programs.6 min read
08Chapter 8: Quorums: tuning N, R and WThis chapter assumes you know what replication is, have read the chapters on linearizability and eventual consistency, and can read simple Python. A quorum system lets a replicated store trade read cost, write cost, and consistency by choosing how many replicas must answer each operation.5 min read
09Chapter 9: Ordering events: happens-before and vector clocksReplicas accept writes independently, so a system needs a way to say which write came first. This chapter covers what "first" can mean when machines have no shared clock. It also covers how Lamport clocks and vector clocks track it, and how a store uses them to find concurrent writes.5 min read
10Chapter 10: Causal consistencyThis chapter assumes you know what a consistency model is, have read the chapters on linearizability and sequential consistency, and understand happens-before and vector clocks. The Python examples build directly on the vector clock comparison from the previous chapter.5 min read
11Chapter 11: Session guarantees: read-your-writes, monotonic reads and moreThis chapter assumes you know what replication is and how an eventually consistent store can return stale reads. It also assumes you can read short Python programs. Session guarantees are a small set of promises that make an eventually consistent store feel sensible to one client, without paying for5 min read
12Chapter 12: Resolving conflicts: last-write-wins and CRDTsThis chapter assumes you know what replication is, how eventual consistency lets replicas diverge temporarily, and how vector clocks tell ordered events from concurrent ones. You should also be able to read short Python programs.6 min read
13Chapter 13: Consensus: how strong consistency is implementedThis chapter assumes you know what linearizability means, how quorums overlap, and what a replicated log is at a basic level. You should also be comfortable reading short Python snippets.5 min read
14Chapter 14: Serializability versus linearizabilityThis chapter assumes you know what linearizability and sequential consistency mean, you have used a relational or key-value database, and you can read short Python. The two words sound alike and are often confused, even in vendor documentation. They describe different things, and a system can have o6 min read
15Chapter 15: Testing consistency claims in practiceThis chapter assumes you know the definitions of linearizability, sequential consistency, and eventual consistency from earlier chapters. It also assumes you can read short Python programs. Here you will learn how to check whether a real system keeps the promises in its documentation.6 min read
16Chapter 16: Choosing a consistency model for your workloadThis chapter assumes you know the models from earlier chapters: linearizability, sequential, causal and eventual consistency, session guarantees, quorums, and the CAP and PACELC trade-offs. It also assumes you can read short Python. The goal here is to turn those ideas into a repeatable decision pro5 min read