chapter 1 of 32
The stall gets famous
Goal: Grow one stall into a system that survives the crowd
The stall gets famous
testbeatenOne wala, many kettlesThe slate next to the stoveLoad balancing: the chai stall that got famousCaching: the slate next to the stoveWhen the stalls must agree
testbeatenThe cut phone lineTwo kitchens, two citiesCAP: the cut phone lineRaft consensus: who gets to writeHolding up under load
testbeatenOne wala, many kettlesThe bouncer at the doorLoad balancing: the chai stall that got famousRate limiting: the bouncer at the doorThe parts, properly
testbeatenThe right book for the jobThe last vadaChoosing a datastore: the workload picks the bookCaching properly: write strategies, stampedes, and invalidationDeeper than the interview
testbeatenThe cut phone lineTwo kitchens, two citiesCAP: the cut phone lineReplication: the copy clerksThe interview, assembled
testbeatenThe stall, built
testbeatenOne wala, many kettlesThe order slip railLoad balancing: the chai stall that got famousQueues: the order slip rail and the cliffLow-level design: classes, properly
testbeatenThe low-level design round
testbeatenSix more low-level rounds
testbeatenFive more whole designs
testbeatenThe questions that keep coming up
testbeatenAmazon
testbeatenAmazon, the whole system on one canvasClaude
testbeatenClaude remembers nothing: how a chat feels like memoryCloudflare
testbeatenCloudflare: why is every server the same server?Cursor
testbeatenCursor: how a new hire's four hours became twenty one secondsDiscord
testbeatenDiscord: what stays still when everything inside is replaced?Dropbox
testbeatenDropbox: how do two honest copies of a folder not wreck each other?Figma
testbeatenFigma, the whole system on one canvasGoogle Maps
testbeatenGoogle Maps: how a route across a country comes back in a millisecondGoogle Search
testbeatenGoogle Search, the whole system on one canvasNetflix
testbeatenNetflix, the whole system: why pressing play is almost instantOpenRouter
testbeatenWhat does OpenRouter own, when it owns no models?Slack
testbeatenSlack: what you wait for, and what is allowed to waitStripe
testbeatenStripe: why the book is the productTwitter (X)
testbeatenTwitter: when is your feed built?Uber
testbeatenUber: exactly right in three places, a few seconds behind everywhere elseYouTube
testbeatenYouTube, the whole system on one canvasZomato
testbeatenZomato: why a free rider is kept waitingDesigns on a map
The famous stallThe slateFree with an accountThe order slip railWith a planThe copy helpersWith a planSplitting the account bookWith a planWho is open, and who stocks itWith a planThe cut phone lineWith a planWho holds the penWith a planThe two account books must agreeWith a planCharged twiceWith a planThe account book everyone readsWith a planOne wala, many kettlesWith a planThe man on the doorWith a planKitchen fullWith a planWhen the neighbour is slowWith a planThirty stalls, one orderWith a planThe machine that fills upWith a planThe right bookWith a planThe last vadaWith a planThe slate, properlyWith a planBranches near youWith a planCounting without namesWith a planThe contract at the counterWith a planThe customer who won't hang upWith a planA lock on every doorWith a planTwo kitchens, two citiesWith a planSize for the zone you loseWith a planThe stall with no stoveWith a planCompute on borrowed disksWith a planWhat the database promisedWith a planThe write that happened twiceWith a planChanging the engine in flightWith a planOne kitchen or manyWith a planOne request, forty servicesWith a planThe log is the truthWith a planEveryone edits offlineWith a planThe test that passedWith a planNumbers to carry in your headWith a planDesign the whole thingWith a planFour systems in one nightWith a planThe stall, built: the gateWith a planThe stall, built: copies and cutsWith a planThe stall, built: rush hourWith a planCircle the nounsWith a planGlass at the counterWith a planA stack with a back doorWith a planOne cash counter, five breaksWith a planThe delivery fee chainWith a planWho hears the book come backWith a planThe attendant's six questionsWith a planWhich floor nextWith a planTwo clicks, one seatWith a planThe notebook on the fridgeWith a planThe desk and the file roomWith a planThe box that says noWith a planThe bouncer's saucersWith a planThe officer's call-outsWith a planPieces that know their movesWith a planA game you can replayWith a planThe polite census takerWith a planEvery click is a coinWith a planThe ten o'clock rushWith a planRun this at nineWith a planIs it up?With a planHow much failure can you affordWith a planA cloakroom for web linksWith a planA tap on 20 million shouldersWith a planThe ten songs asked for mostWith a planA box for every shopWith a planThe backup nobody testedWith a planDelete means deleteWith a planFlats that must not floodWith a planA parcel warehouse for a trillion filesWith a planA label nobody else hasWith a planA print shop for a billion photosWith a planThe cart that cannot say noWith a planAmazon as a 45 minute roundWith a planThe card is the bottleneckWith a planDesign Claude in 3 minutesWith a planOne address, 330 citiesWith a planDesign Cloudflare in 3 minutesWith a planFour hours to 21 secondsWith a planDesign Cursor in 3 minutesWith a planTwo systems in one chat appWith a planDesign Discord in 45 minutesWith a planSync is not copyingWith a planDesign Dropbox in 3 minutesWith a planTwo designers, one rectangleWith a planDesign Figma in 3 minutesWith a planWork it out before they askWith a planGoogle Maps as a 45 minute roundWith a planNever search while they waitWith a planGoogle Search as a 45 minute roundWith a planThree engineers, 14 million usersWith a planDesign Instagram in 45 minutesWith a planThe shortage is bytes going outWith a planDesign Netflix in 45 minutesWith a planThe desk in the middleWith a planDesign OpenRouter in 3 minutesWith a planThe company-sized spaceWith a planDesign Slack in 45 minutesWith a planThe click that might be two chargesWith a planStripe as a 45 minute roundWith a planThe night the whale appearedWith a planDesign Twitter in 45 minutesWith a planWhich car is nearest?With a planUber as a 45 minute roundWith a planThe courier who reads nothingWith a planWhatsApp in 45 minutesWith a plan500 hours in, a billion outWith a planDesign YouTube in 45 minutesWith a planThe kitchen's clockWith a planFood delivery as a 45 minute roundWith a planDesign Strava, in the interviewWith a planDesign Nearby Friends, in the interview