Concept 11
Distributed systems
Reason about time, failure and agreement when machines cannot trust each other.
9 lessons · 6 notes · 4 labs · 1 design problem · 30 vault drills · 8 free
You need these first
Each topic builds on the ones before it. Read one page from each, then come back.
- Foundations · start with What System Design Actually Is
Free - Networking and traffic · start with How the Internet Actually Works
Free
50 matching resources
Lesson
- Consistent HashingLesson
Free 15 min read - Fallacies of Distributed ComputingLesson
Locked 28 min read - Network Partitions & Split BrainLesson
Locked 17 min read - Heartbeats & Failure DetectionLesson
Locked 20 min read - Time & OrderingLesson
Locked 17 min read - Consensus AlgorithmsLesson
Locked 24 min read - Leader Election & Distributed CoordinationLesson
Locked 23 min read - Distributed LocksLesson
Locked 23 min read - Distributed TransactionsLesson
Locked 20 min read
Note
- Distributed Unique ID Generation at ScaleNote
Locked 17 min read - Replication and Leader ElectionNote
Locked 22 min read - Consistent Hashing and Virtual Nodes from ScratchNote
Locked 18 min read - Distributed Transactions and SagasNote
Locked 20 min read - Optimistic vs Pessimistic LockingNote
Locked 20 min read - Designing a Resilient Distributed Job SchedulerNote
Locked 19 min read
Lab
- API Idempotency Key Engine & Distributed LockingLab
Locked Laptop + Docker - Distributed Lock Fencing Tokens & Lease ExpirationLab
Locked Laptop + Docker - Redis Sentinel Quorum Failover and Split-Brain PreventionLab
Locked Laptop + Docker - Raft Consensus Algorithm: Leader Election & Log ReplicationLab
Locked Laptop + Docker
Design problem
- Design a Distributed Job Scheduler (On Time, Once, Recoverable)Design problem
Locked 42 min read
Vault drill
- How to Stop Two Users from Booking the Same Seat Without Locking the Whole TableVault drill
Free 14 min read - How to Stop 10,000 Requests from Hitting the Database When a Cache Key ExpiresVault drill
Locked 16 min read - How to Stop Double Charges When a User Double-Taps Pay NowVault drill
Locked 15 min read - What to Do When 80% of Your Traffic Hits a Single Cache KeyVault drill
Locked 14 min read - Design a Virtual Waiting Room and Ticket Queue for 10 Million UsersVault drill
Free 16 min read - Design a UPI Switch That Handles Bank Timeouts Without Paying TwiceVault drill
Free 16 min read - How to Serve Live Video to 50M Viewers Without Crashing the OriginVault drill
Free 15 min read - How to Track Dark-Store Inventory When Hundreds of Orders Hit at OnceVault drill
Locked 16 min read - How to Route Users and Handle Conflicting Writes Across Two RegionsVault drill
Free 16 min read - How to Roll Back Distributed Transactions Using the Saga PatternVault drill
Locked 16 min read - How to Track Millions of Moving Cars and Find the Nearest DriverVault drill
Locked 16 min read - How to Fail Over Across Clouds Without DNS Flapping or Stale CachesVault drill
Locked 15 min read - Why an Idempotent Producer Is Not Enough for Exactly-Once in KafkaVault drill
Free 16 min read - Why Redis Locks Fail and How Fencing Tokens Stop Double-WritesVault drill
Locked 16 min read - Why Rendering 2,000 Seats in SVG Freezes the Browser and How Canvas Fixes ItVault drill
Locked 14 min read - How etcd Prevents Split-Brain During Leader ElectionVault drill
Locked 16 min read - Design a Backup Cloud Region That Takes Over Traffic in 5 MinutesVault drill
Locked 16 min read - Where Should You Store User Sessions? Sticky Sessions vs RedisVault drill
Locked 15 min read - How to Combine Local In-Memory Cache with Redis Across 50 ServersVault drill
Locked 16 min read - How Do You Automate PostgreSQL Failover Without Split-Brain Writes?Vault drill
Locked 21 min read - Design a Double-Entry Wallet Ledger That Prevents DeadlocksVault drill
Locked 15 min read - Design a Real-Time Collaborative Document Editor Like Google DocsVault drill
Locked 15 min read - Design a Real-Time Trending Topics Engine for 500,000 Posts a SecondVault drill
Locked 15 min read - Design a Distributed Web Crawler for 10 Billion PagesVault drill
Locked 15 min read - Design Real-Time Chat Like WhatsApp for 50M WebSocketsVault drill
Locked 15 min read - Design a Newsfeed with Push vs Pull Fan-Out for CelebritiesVault drill
Locked 14 min read - PostgreSQL Primary Crashes at Peak Traffic with an Async ReplicaVault drill
Free 14 min read - A Cloud Region Fails. Why Is Changing DNS Only 10% of the Recovery?Vault drill
Locked 14 min read - Sending 10 Million Push Notifications in 5 Minutes Without Taking Down CheckoutVault drill
Locked 15 min read - This Redis Lock Passes Every Test but Still Lets Two Workers WriteVault drill
Locked 18 min read