Skip to content

Last updated: 2026-08-08

Ch 26 · Distributed Systems: Consistency & Evolution ​

Stage: 第三阶 · Expert (L3 → L2) | Pillar: Systems Thinking

Core Question ​

How does a multi-node system maintain consistency when the network is unreliable?

Soul Insight ​

CAP theorem is not a checklist — it is a lens for understanding distributed tradeoffs. A consistency model is an agreement about when data can be trusted. Every distributed system makes this tradeoff; the question is whether you made it consciously or by accident.

Concepts ​

  • CAP theorem: Consistency, Availability, Partition tolerance — and why you can't have all three
  • PACELC: extending CAP to include latency tradeoffs even without partitions
  • Consistency model spectrum: linearizability → sequential → causal → eventual consistency
  • Consensus algorithms: Raft/Paxos intuition — why agreement is hard with failures
  • Replication strategies: single-leader, multi-leader, leaderless
  • Conflict resolution: last-write-wins vs CRDTs vs application-level merging

Practice Anchor ​

Analyze three real systems and their consistency choices:

SystemConsistency choiceWhy
etcd/ZooKeeperLinearizableCoordination requires exactness
KafkaAt-least-once deliveryThroughput over exactness
DynamoDBEventual (tunable)Availability over consistency for shopping carts

For each: what would break if they chose stricter consistency? What already breaks with looser?

Status ​

Distributed systems notes exist with significant detail.

Built as an open learning notebook