Concept 12
Runtime design and concurrency
Keep shared state correct when work overlaps.
3 lessons · 2 notes · 1 simulator · 4 design problems · 62 vault drills · 1 incident · 12 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
73 matching resources
Lesson
- Distributed LocksLesson
Locked 23 min read - Concurrency for LLD, Part 1Lesson
Locked 16 min read - Concurrency for LLD, Part 2Lesson
Locked 16 min read
Note
- Design BookMyShow / IRCTC (Seat Reservation)Note
Locked 69 min read - Optimistic vs Pessimistic LockingNote
Locked 20 min read
Simulator
- Seat Hold SimulatorSimulator
Locked 12 min readBrowser, no install
Design problem
- Design a Hotel Reservation System (Dates, Holds, Overbooking)Design problem
Locked 30 min read - Design a Stock Exchange Matching Engine (Price-Time, Replay, Fairness)Design problem
Locked 30 min read - Design Inventory Reservation for Quick Commerce (No Overselling)Design problem
Free 30 min read - Design IRCTC Train Booking (Route-Segments, RAC, Waitlist, Charting)Design problem
Locked 45 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 - How to Combine Retries and Circuit Breakers Without Doubling LoadVault drill
Free 14 min read - Why Wrapping Modern ORMs in a Generic Repository Ruins PerformanceVault drill
Free 13 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 Build an In-Memory Queue That Does Not Run Out of RAMVault drill
Locked 14 min read - How to Track Dark-Store Inventory When Hundreds of Orders Hit at OnceVault drill
Locked 16 min read - The API Freezes Under Load While CPU Sits at 4%. What Is Going On?Vault drill
Locked 15 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 - 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 - 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 - Design Splitwise with Thread-Safe Debt SettlementVault drill
Locked 15 min read - Design an E-Commerce Cart with Temporary Holds and TTL SweepersVault drill
Locked 15 min read - Design a Thread-Safe In-Memory LRU Cache with TTL ExpiryVault drill
Locked 15 min read - Design an API Rate Limiter with Token Bucket and Sliding WindowVault drill
Free 15 min read - Design a Multi-Floor Parking Lot with Nearest-Spot AllocationVault drill
Locked 15 min read - Design a Multi-Elevator System Using the LOOK AlgorithmVault drill
Locked 15 min read - Design a Multi-Channel Notification Service with Provider FailoverVault drill
Locked 15 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 - Designing an In-Memory Pub-Sub with Delayed Task SchedulerVault drill
Locked 16 min read - All Tests Pass, but Duplicate Orders Still Appear in Production. Why?Vault drill
Free 12 min read - A Thread-Safe Cache Still Fires 50 Remote Calls on a Miss. Why?Vault drill
Locked 12 min read - A 2-Second Payment Delay Drains the Database Connection Pool. Why?Vault drill
Free 12 min read - A Singleton Captures a Scoped Dependency and Leaks Tenant DataVault drill
Locked 12 min read - Why Fire-and-Forget Background Tasks Lose Events on Pod ShutdownVault drill
Locked 12 min read - A Clean Refactor Spikes p99 Latency from 20ms to 4 Seconds. Why?Vault drill
Locked 12 min read - Fixing an N+1 Query Spiked Latency from 80ms to 9 Seconds. Why?Vault drill
Locked 12 min read - Why Does an Event-Driven Worker Run Out of Memory After 12 Hours?Vault drill
Locked 12 min read - Why Case-Insensitive Search Spikes Database CPU to 100%Vault drill
Locked 12 min read - The Bulk-Update ORM Loop That Locked the Entire TableVault drill
Locked 12 min read - Changing a Route Parameter Leaks Another Tenant's Invoices. Why?Vault drill
Locked 12 min read - Why Did a Redis Cache Leak Another Tenant's Data and Admin Views?Vault drill
Locked 12 min read - Why Does a Passing Payment Webhook Allow Timing Attacks and Replays?Vault drill
Locked 12 min read - A Profile Update Lets Users Grant Themselves Admin Rights. Why?Vault drill
Locked 12 min read - Why Parameterized Queries Do Not Protect ORDER BY and How to Fix ItVault drill
Locked 12 min read - Why Do Retries in Polly and Resilience4j Crash Downstream Services?Vault drill
Locked 12 min read - A Null Check Stopped the Crash but Corrupted Production Data. Why?Vault drill
Locked 12 min read - The Distributed Redis Lock That Deleted Another Worker's LockVault drill
Locked 12 min read - The Kafka Consumer Silently Dropping Messages on Pod RestartVault drill
Locked 12 min read - Why Line-Item Discounts and Taxes Drift by a Penny in ProductionVault drill
Locked 12 min read - An AI Tool Opened an 18-File PR for a 1-Line Bug. Do You Approve?Vault drill
Locked 12 min read - Unit Tests Pass with 100% Coverage but the Database Query Fails. Why?Vault drill
Locked 12 min read - Debugging an Unfamiliar "Vibe-Coded" Module During Sev-1Vault drill
Locked 12 min read - An AI-Generated Regex Passes All Tests but Freezes the Gateway. Why?Vault drill
Free 12 min read - This Checkout PR Passed Every Test but Broke Production. Why?Vault drill
Locked 12 min read - Sending 10 Million Push Notifications in 5 Minutes Without Taking Down CheckoutVault drill
Locked 15 min read - Design a Smart Parcel Locker Network Like Amazon HubVault drill
Locked 20 min read - Design an ATM Cash Dispenser with Multiple Denominations and JamsVault drill
Locked 20 min read - This Redis Lock Passes Every Test but Still Lets Two Workers WriteVault drill
Locked 18 min read
Incident
- The Double-Booked BerthIncident
Free Browser, no install