Objectives: explain what makes a system distributed and the three root problems; identify the 8 fallacies in a call between two services; order events with Lamport clocks; choose C or A with CAP and PACELC; describe Raft and size a cluster; compare quorums and consensus with eventual consistency (LWW, vector clocks, CRDTs). Outline: (1) overview: the store, classification, gains and costs, fallacies, the three root problems, logical clocks; (2) CAP and PACELC; (3) consensus: FLP, failure models, majorities, Paxos, Raft, quorums, CRDTs, use don't build.