The 45-minute script
Put five engineers in a room, say "design Instagram," and without structure you'll get a technology tour: someone says Kafka, someone says Redis, someone draws boxes, and 45 minutes later nothing has been decided. This happens in interviews and it happens in real design reviews. The fix is a fixed script — the same seven phases, in the same order, every time. It works because it forces requirements before solutions, which is the one discipline that separates people who design systems from people who name technologies.
1. Scope — 5 minutes
Write down what the system must do, as verbs the user performs: "post a photo," "follow a user," "view a feed." Three to five verbs, no more. Then do the thing that earns the most respect in the first five minutes: cut scope out loud. "No payments in v1. No moderation. No analytics dashboard." Cutting isn't laziness — it's proof you understand that everything you include must be designed, built, and kept alive. Interviewers and senior engineers both light up when they see it.
2. Constraints — 5 minutes
Now put numbers on it, using the Lesson 0.02 shortcuts. How many users? What read:write ratio? How big is a typical payload? What latency is acceptable? Does data need to be instantly consistent, or is a few seconds of staleness fine? Turn the answers into QPS (queries per second), storage per year, and bandwidth. If nobody gives you numbers, invent reasonable ones and say you're doing so — "I'll assume 10 million daily users and a 100:1 read ratio" is a professional move, not a cheat.
3. API — 3 minutes
Sketch two or three endpoints with real signatures: POST /posts {image, caption}, GET /feed?cursor=.... This feels like a small step but it does heavy lifting: writing the API pins down your data model and makes hand-waving impossible. If you can't write the endpoint, you don't understand the feature yet.
4. Data model — 7 minutes
List the entities (User, Post, Follow), their relationships, and — this is the part people skip — the access patterns: which queries will run, and how often. Then choose storage. The order matters enormously: access patterns pick the database, not the other way round. Choosing MongoDB and then figuring out your queries is designing backwards.
5. High-level design — 10 minutes
Draw the boring version first: client → load balancer → app service → database. Yes, it looks too simple. Draw it anyway. Make it work before you make it fast. A correct simple design you then evolve under pressure beats an impressive complicated design you can't justify.
6. Scale and break it — 12 minutes
Now attack your own drawing like a hostile reviewer. Where's the hot spot when traffic is 3× peak? What happens when this box dies? Which query gets slow first? For each weakness you find, add a mechanism — cache, replica, queue, shard — but always as a response to a named failure: "the feed read is the bottleneck at 6k QPS, so I'll cache it" rather than "let's add Redis because Redis is good." Every component earns its place by pointing at the problem it solves.
7. Tradeoffs — 3 minutes
Close by stating what you gave up: "This design chooses fast reads over instant consistency — a new post may take a few seconds to appear in followers' feeds." Every senior engineer in the room is waiting for this part, because every real design gives something up, and pretending yours doesn't signals you can't see it.
Why the order is the whole trick
Notice that technologies don't appear until phase 6, minute 30. That's deliberate. The chain is always: requirements → bottleneck → mechanism → technology. "We need feed reads under 200 ms (requirement); the database can't serve 6k QPS of them (bottleneck); so we cache precomputed feeds (mechanism); Redis fits (technology)." Anyone can memorise the last word. The first three are the actual skill.
Jumping to Kafka in minute two. If you name a technology before you've named a requirement, you've already lost the room — it tells everyone you're pattern-matching to blog posts rather than thinking. Requirements → bottleneck → mechanism → technology. Always that order, even when you're excited.