02Chapter 2: The single-node storage engine: WAL, memtable, and SSTablesThis chapter assumes you know hash maps, sorted lists, binary search, and basic file I/O, and that you can read short Python snippets. Everything here happens on one machine. Later chapters spread the same engine across a cluster.6 min read
03Chapter 3: Why and how to partition dataThis chapter assumes you know hash maps and sorted lists, and that you understand basic client-server networking. You should also be comfortable with simple Python. By the end, you should be able to choose a partitioning scheme for a key-value store and explain what each choice costs.6 min read
04Chapter 4: Consistent hashing and the hash ringThis chapter assumes you have read the previous chapter on why data is partitioned. It also assumes you are comfortable with hash functions, sorted lists, binary search, and short Python snippets. Here you will build the mechanism that decides which node owns a key, and see why it moves little data 5 min read
05Chapter 5: Virtual nodes and balanced loadThis chapter assumes you have read the previous chapter on consistent hashing and the hash ring. You should be comfortable reading short Python snippets and know that a key is stored on the first node clockwise from its hash. Here we look at why a plain ring balances load poorly and how virtual node6 min read
06Chapter 6: Replicating each key to N nodesThis chapter assumes you have read the chapters on partitioning, consistent hashing, and virtual nodes. You should know that a hash ring maps each key to a position, and that each physical node owns many positions (virtual nodes). You should also be able to read short Python snippets.6 min read
07Chapter 7: Consistency models and the CAP/PACELC trade-offsThis chapter covers what "consistent" can mean for a replicated key-value store, and why the choice costs availability or latency. It assumes you know how keys are partitioned and how each key is replicated to N nodes on a preference list, as covered in the previous chapters. It also assumes you can6 min read
08Chapter 8: Tunable consistency with read and write quorumsThis chapter assumes you know how a key maps to N replicas through a preference list, and that you can read short Python snippets. It covers how a client-visible operation turns into messages to those replicas, and how three numbers (N, R and W) let you trade consistency against latency and availabi6 min read
09Chapter 9: Tracking causality with vector clocksThis chapter assumes you know how a key is replicated to N nodes through a preference list, and that a write is acknowledged by W replicas. It also assumes you can read short Python snippets. Quorums decide how many replicas must answer. They do not tell you what to do when two replicas hold differe6 min read
10Chapter 10: Resolving conflicts: last-write-wins, siblings, and CRDTsThe previous chapter showed how vector clocks detect that two writes to the same key are concurrent. Detection only tells the store that a conflict exists. This chapter covers what the store does next. It assumes you can read short Python snippets, know how vector clocks are compared, and understand5 min read
11Chapter 11: Cluster membership and failure detection with gossipThis chapter assumes you know how the consistent-hash ring places keys on nodes, how a preference list is built, and that each key is replicated to N nodes. You should also be comfortable reading short Python snippets.7 min read
12Chapter 12: Routing requests: coordinators and client-side routingThis chapter assumes you know how a consistent-hash ring and preference lists work, and that you have seen gossip-based membership. It covers a narrower question: when a client sends get or put for a key, which machine receives it, and what does that machine do?6 min read
13Chapter 13: Surviving temporary failures with sloppy quorums and hinted handoffThis chapter assumes you have read the earlier chapters on consistent hashing, preference lists, and read and write quorums. You should know that each key has a replica set of N nodes, and that a write succeeds once W of them acknowledge it. You should also be comfortable reading short Python snippe6 min read
14Chapter 14: Repairing divergence with read repair and Merkle treesThis chapter assumes you know the replication and quorum model from the earlier chapters: N replicas per key, read and write quorums (R and W), and vector clocks. It also assumes you can read short Python snippets.5 min read
15Chapter 15: The alternative: consensus-based replication with Raft or PaxosThe earlier chapters built a leaderless design. Any replica in a key's preference list can accept a write, quorums tune consistency, and vector clocks expose conflicts that the application resolves. This chapter covers the other main design: replicas agree on one ordered log of operations through a 6 min read
16Chapter 16: Testing with failure injection and operating the clusterThis chapter assumes you know the pieces built in earlier chapters: quorums (R + W > N), sloppy quorums with hinted handoff, read repair, Merkle-tree anti-entropy, gossip-based failure detection, and the WAL and SSTable storage engine. Here we ask whether the assembled system keeps its promises when5 min read