Lesson 16 of 17
14. Replication

Sources

3 min read+10 XP

Source notes

  • Leader-follower replication, write-ahead log shipping and synchronous standby settings, and pg_stat_replication: PostgreSQL documentation (high availability, replication). MySQL binary log and semi-synchronous replication: MySQL documentation.
  • Leaderless replication, quorums (N, W, R), hinted handoff, read repair and Merkle-tree anti-entropy: Giuseppe DeCandia et al., "Dynamo: Amazon's Highly Available Key-value Store", SOSP 2007; Apache Cassandra documentation for consistency levels.
  • Raft: Diego Ongaro and John Ousterhout, "In Search of an Understandable Consensus Algorithm", USENIX ATC 2014.
  • GitHub split-brain incident: GitHub, "October 21 post-incident analysis" (https://github.blog/news-insights/company-news/oct21-post-incident-analysis/), describing a network partition, Orchestrator promoting primaries in another region, data reconciliation, and the decision to stop cross-region automatic promotion.
  • Patroni (PostgreSQL high availability) and Orchestrator (MySQL topology and failover): project documentation.
  • All bookstore numbers are illustrative assumptions; arithmetic computed 2026-10-08.
  • Level 3 and Level 4 code: tested 2026-10-08 (code/ch14_replication.py, all checks pass).