A Framework for System Design Interviews
Ch. 4 Foundations System designThe problem
The prompt fits on one line — design a news feed — and the room gives you
forty-five minutes. Nobody expects the real product in that slot: the session exists to
watch two colleagues work an open-ended problem together, and the way you travel matters
more than the drawing you leave behind.
So treat the interview itself as the system you are designing. It has a clock (four steps splitting 45 minutes), an interface (questions in, hints out), and a deliverable (signals on a scorecard). This chapter animates that machine step by step, using a news feed sized to 10 million daily users as the running example.
Requirements
Functional — what it must do
- Turn a one-line prompt into an agreed, written scope before any component is drawn.
- Produce a high-level blueprint — clients, load balancer, servers, services, stores — the interviewer can react to and approve.
- Pick two or three components for the deep dive together with the interviewer, guided by their hints.
- Close with bottlenecks, failure modes, a 10× growth answer, and a recap instead of trailing off.
Non-functional — how well it must do it
- Speak while designing — silence hides exactly the signals the interviewer came to collect.
- Every step ends at a checkpoint where the interviewer can redirect you before more minutes are spent.
- Time discipline: no single component may eat more than its slice of the clock; rabbit holes get parked by name.
- A modest design defended with tradeoffs outscores an impressive one reached silently.
Scale — how much it must take
- One 45-minute session, two people, one whiteboard — demonstrated on a news feed carrying 10 million daily active users.
Assumptions — the numbers this design is sized for
A rate limit means nothing without a scale. These are the figures every later part relies on: how much traffic arrives, how much work the limiter has to do per second, and how much latency and memory it may spend doing it.
Takeaways
- The process carries the signal: scope, blueprint, deep dive, wrap — in that order, out loud.
- Spend the opening minutes on questions; an instant answer builds the wrong system quickly and quietly.
- Write every assumption on the board with its number — a scope card the whole session can be checked against.
- Draw cheap boxes first and collect the interviewer's nod before zooming into anything.
- Let the interviewer aim the deep dive, and park rabbit holes by name instead of falling into them.
- Never announce the design finished — bottlenecks, failure modes, and the 10× answer are the cheapest signals left.
What the room is really scoring
Before any process: the interview is a signal-collecting exercise run by two people. What lands on the scorecard is mostly how you worked, not what you drew.
- 1Two people, one problem
Strip away the pressure and the setup is small: one candidate, one interviewer in teammate mode, one shared surface. Questions and hints travel between them while the design grows on the board.
- 2Signals beyond the diagram
A strong session reports on more than technical depth: can you collaborate under pressure, resolve ambiguity instead of freezing, and ask questions that sharpen the problem? Interviewers listen for all of it at once.
- 3The red flags
Some behaviors cost more than a weak diagram: gold-plating a component nobody asked about, defending one idea stubbornly, or designing in total silence. Each one buries signals the interviewer came to collect.
- 4Process beats the final drawing
Because the problem is open-ended, the scorecard is filled by how you moved: clarifying, proposing, adjusting when pushed. A modest design walked with good judgment outscores an impressive one reached without a word.
The 45-minute clock
The framework is a time budget. Four steps split one slot, the deep dive takes the biggest slice, and every boundary is a checkpoint where the interviewer can steer.
- 1An empty slot
Here is the whole resource you manage: one 45-minute slot, drawn on a wall clock in seconds. Nothing is budgeted yet — the vague prompt has just landed and the marker is still capped.
- 2Budget the four steps
Lay the four steps along the clock. The guide ranges are wide — scope 3 to 10 minutes, blueprint 10 to 15, deep dive 10 to 25, wrap 3 to 5 — and the balls here show one typical split: 8, 12, 22 and 3.
- 3Deep dive takes the lion's share
Watch the proportions: 22 of the 45 minutes go to the deep dive. Roughly half the slot belongs to zooming into components — and everything before it exists to make those minutes count.
- 4A guide, not a law
The ranges overlap on purpose because every session steers differently: a chatty opening may stretch scope, a crisp prompt hands the surplus to the deep dive. Shift minutes between steps as the interviewer pushes — never skip a step outright.
Step 1 · Scope the problem
The fastest route to failure is answering instantly. Spend the opening minutes converting one vague line into a written, numbered scope that you and the interviewer both own.
- 1Don't blurt a design
The eager move is grabbing the marker and drawing. It reads as someone who will confidently build the wrong thing: zero questions asked, scope pure guesswork, and nothing useful learned on either side.
- 2Open the clarify loop
Instead, put the marker down and open a loop: one question at a time, each answered directly or handed back as an assumption you get to choose. Slow is fast here — the loop sets the target every later minute aims at.
- 3A checklist of good questions
Work the checklist: which platforms, which features matter most, how the feed is ordered, the friend cap, daily traffic, media support. Five or six answers usually pin down an entire product.
- 4Write the answers down
Our news feed prompt resolves like this: both apps, posting and reading as the core, newest-first ordering, a 5,000-friend cap, 10 million daily users, media allowed. Anything unanswered becomes your assumption — and assumptions go on the board where both of you can see them.
Step 2 · Blueprint and buy-in
Draw the skeleton — clients, load balancer, servers, services, stores — check it against the numbers, and collect a nod before zooming anywhere. Cheap boxes are cheap to move.
- 1Name the two flows
Nearly every design decomposes into a write path and a read path. Here: publishing a post, and building the feed a reader scrolls. Naming the flows first tells you which boxes the skeleton even needs.
- 2Draw the skeleton
Six boxes and the arrows between them: clients hit a load balancer, which spreads load across web servers; app services hold the logic; caches sit in front of the databases. No internals yet — the point is the shape.
- 3Run the envelope math
Check the skeleton against the scope before anyone falls in love with it. Ten million daily users posting twice a day is roughly 230 writes a second on average — call it 1,200 at peak — and ten feed opens each is about 1,150 reads a second. Ordinary numbers: the shape holds.
- 4Get the nod
Before diving anywhere, hand over the pen figuratively: does this shape look right, and which box deserves the magnifying glass? The answers aim your deep dive — and redirecting you now costs minutes, not the session.
Step 3 · The deep dive
Half the slot goes here. Let the interviewer pick the targets, go two components deep with real mechanics, and park the rabbit holes by name.
- 1Let the interviewer aim
Hints choose the targets: worry about write amplification and the fanout path lights up; care about read latency and the feed path does. You propose two, they confirm — drilling the wrong component wastes the best minutes of the slot.
- 2Zoom into the write path
Publishing up close: the post service hands each new post to the fanout service, which pulls the friend list from the graph database and enqueues one job per friend. Workers drain the queue and write into friends' feed caches — worst case, 5,000 inbox writes for a single post from a maxed-out account.
- 3Zoom into the read path
Reading up close: a feed request flows through the load balancer to the feed service, which reads the top slice of the user's inbox cache; a miss drops to the database and rebuilds. Heavy media never touches this path — a CDN serves images and video straight from the edge.
- 4Park the rabbit holes
Ranking algorithms, exact sharding schemes, inbox consistency edge cases — name each one, say what you would do with another hour, and move on. Twenty-two deep-dive minutes cannot fund forty minutes spent inside one component.
Step 4 · Wrap up on purpose
Never declare the design finished. The last minutes buy the cheapest signals of the session: bottlenecks, failure modes, the next 10×, and a recap that sticks.
- 1Recap the whole board
Walk the interviewer through your own drawing one last time — clients to load balancer to services to stores, write path and read path in one breath. After forty minutes of detail, the recap is the version of the design they will remember.
- 2Name a bottleneck and a fix
Volunteer the weak points yourself: a celebrity post fanning out to 5,000 inboxes at once, hot cache misses on big accounts, one region holding everything. Each weakness paired with a direction — hybrid push-pull, tiered caching, a second region — is pure signal.
- 3Answer the 10× question
Growth is the classic closing probe: this design carries 10 million daily users — what changes at 100 million? Sharded stores, services split along the two flows, and a second region are the first three moves. It shows the design bends instead of breaking.
- 4Close the loop
Offer the remaining threads: what breaks when the queue dies, how the rollout ships and which metrics watch it, what another hour would buy. Then stop when the clock says so — a clean ending is itself a signal.
The session, end to end
One run through the whole machine: the prompt lands, the clock gets budgeted, the board fills, the deep dive burns its big slice, and the wrap lands the signals on time.
- 10:00 — the prompt lands
The interviewer slides over one line — design a news feed — and starts a 45-minute clock. Nothing is on the board yet; the only decision available is where the first minutes go.
- 2Minutes 0–8 — scope agreed
Six questions later the scope card is on the board: both apps, post and read, newest-first, a 5,000-friend cap, 10 million daily users, media allowed. The clock reaches minute 8 with a target worth aiming at.
- 3Minutes 8–20 — blueprint up
The skeleton goes up and the envelope math comes back kind: about 230 writes and 1,150 reads per second on average, near 1,200 writes at peak. The interviewer nods — buy-in secured, and the deep dive now has a map.
- 4Minutes 20–42 — deep dive
The biggest slice burns where it should: the write path with its queue and fanout workers, then the read path and its inbox cache. Two components, real mechanics, ranking politely parked — the interviewer now has everything needed to score design depth.
- 5Minutes 42–45 — wrap and signals
Bottleneck named, growth answered, recap delivered — the session ends on purpose instead of fading out. Four steps, one clock, a board that tells the whole story: that is the framework, and the scorecard fills itself.