Back to Browse

System Design Ch.2: Replication and Consistency

166 views
Apr 3, 2026
17:33

Every backend engineer has done this: point reads at a replica, see green health checks, and assume the data is fresh. But replication only guarantees you have more than one copy. It does not guarantee those copies agree. The moment you copy data, you create arguments between machines, and your architecture becomes the process for deciding which arguments matter. This episode breaks down the real replication patterns behind production databases: leader-follower, multi-leader, and leaderless replication. We cover split-brain, last-writer-wins, CRDT intuition, quorum math, synchronous vs asynchronous replication, and why CAP is less useful day to day than PACELC. By the end, you should have a clearer mental model for why Cassandra, Spanner, and DynamoDB make different tradeoffs, and why the right answer always depends on what kind of lie your product can tolerate. 0:00 Your Replica Might Be Lying 1:18 Why Replication Exists 2:24 Leader-Follower Replication 3:15 Failover Ambiguity 4:54 Split-Brain 5:41 Multi-Leader Replication 6:42 Last-Writer-Wins 7:57 CRDT Intuition 9:42 Leaderless Replication 10:13 Quorum Reads and Writes 11:49 Synchronous vs Asynchronous Replication 13:25 CAP Theorem 13:55 PACELC 15:00 Cassandra, Spanner, and DynamoDB 16:27 The Real Tradeoff 17:02 Next: Caching Full series playlist (18 chapters): https://www.youtube.com/playlist?list=PLR8zgz1piLsiJRHnIafuhOnOuchvAmSzy 1. System Design Ch.1: Framework Over Tools: https://youtu.be/TZL5O0A-uq4 2. System Design Ch.2: Replication and Consistency (this video): https://youtu.be/xQFbWnCoDbk 3. System Design Ch.3: Caching Patterns: https://youtu.be/KLMAjGlPdo8 4. System Design Ch.4: Message Queues: https://youtu.be/AiTMIguGKPU 5. System Design Ch.5: Rate Limiters: https://youtu.be/cJs4qufCKE4 6. System Design Ch.6: Cache for 1B+ Requests: https://youtu.be/AeYQu5wJ7vg 7. System Design Ch.7: Chat System for 50,000 Users: https://youtu.be/6nqA3WibLYc 8. System Design Ch.8: Notification Systems at Scale: https://youtu.be/7ezl9NRWT04 9. System Design Ch.9: News Feed for 20 Million Followers: https://youtu.be/tb6e2K3M9gw 10. System Design: Autocomplete in 100 Milliseconds: https://youtu.be/HTF7wY-Rcyc 11. System Design: Streaming Video Without Buffering: https://youtu.be/rVF95I-HRSM 12. System Design: Building a Key-Value Store Across a Hundred Machines: https://youtu.be/bkx5LxiMF64 13. Design a Distributed Job Scheduler 14. Design a Content Moderation Pipeline 15. Design a Multi-Region Database 16. Design a Metrics and Alerting System 17. Design a Payment System 18. Design a Search Engine Subscribe for new chapters weekly! 🌍 Subtitles: 🇺🇸🇬🇧 English, 🇪🇸 Spanish, 🇫🇷 French, 🇩🇪 German, 🇧🇷🇵🇹 Portuguese, 🇨🇳 Chinese, 🇯🇵 Japanese, 🇰🇷 Korean, 🇮🇹 Italian, 🇷🇺 Russian, 🇹🇷 Turkish, 🇮🇩 Indonesian, 🇵🇱 Polish, 🇮🇳 Hindi

Download

0 formats

No download links available.

System Design Ch.2: Replication and Consistency | NatokHD