Learn · system design
Design walkthroughs
How big apps are designed, the way an interview goes: start simple, add real load, watch exactly where it breaks, and evolve the design until it holds. Every version runs as a live simulation.
For one request flow at a time (a checkout, a ticket drop, a feed), see the use cases.
12 min · 3 live versions
Assigning delivery partners in real time
Every order needs a rider, now, and every rider can take one order at a time. Start with a database query, add a geo index, watch riders get double-booked, and end with batches per zone.
Start the walkthrough11 min · 3 live versions
Dinner rush: capacity for every peak
Every city orders dinner at once, and rain can double it in minutes. Start with a fixed fleet, try autoscaling, and end with capacity planned ahead plus a cache that protects checkout.
Start the walkthrough12 min · 3 live versions
Live order tracking
The rider's dot moving on every customer's map at dinner time. Start with a database row and polling, watch it break, and end with a push design that holds.
Start the walkthrough11 min · 3 live versions
An accepted order is never lost
The restaurant taps Accept; the kitchen, the rider and the customer must all hear about it, exactly once, even when services restart and networks drop. From two writes to an outbox.
Start the walkthrough11 min · 3 live versions
An LLM gateway for every team
Every team in the company calls language models. Put one front door in front of them: budgets that count tokens, room kept for customers, fallbacks you can see, and a cache that knows its limits.
Start the walkthrough12 min · 4 live versions
An AI support assistant that can refund
A delivery app's chat assistant that answers from the help centre and can refund an order: from pasting the whole FAQ into every prompt to retrieval and refunds that happen once.
Start the walkthroughComing next
Checkout that stays up when a payment partner slows down
Coming next
Notifications to 100 million phones
Coming next
A home feed for 500 million users
Real designs, in the company's own words
Design, then what broke
A design a company published, choice by choice, and the outages the same company later wrote up, tied back to the choices they ran through.