Day 4 A-Foundations 2026-09-29 ← All lessons

A 4-step framework for any system design interview

“Design Twitter” is not a question, it is a prompt. There is no right answer and no finish line, which is exactly why candidates freeze or ramble. This lesson is the structure that turns 45 unscripted minutes into four phases with a clock, a checklist and an exit condition for each.

45 minA typical session. The clock is a constraint you are graded on (§1)
~50%Share of the time step 3 should take. Most candidates never reach it (§1)
8 questionsEnough to scope almost any prompt (§2)
0 linesOf code you are expected to write. This is not that interview

Key points

Outcomes

01Run all four steps on an unfamiliar prompt without stalling or rambling.
02Ask the eight questions that bound almost any system design problem.
03Recognise when to stop designing broadly and commit to a deep dive.
04Recover out loud when you are behind, over-scoped, or asked something you do not know.
01

The shape of the 45 minutes


Before the content, the clock — because almost every bad interview is a time-management failure rather than a knowledge failure.

How to read: Segment width is minutes. Step 3 is nearly half the session, and it is where depth is demonstrated. Everything before it exists to make it possible.

1 · clarify 2 · propose 3 · deep dive 4 · wrap up 3–5 min 10–15 min 10–25 min 3–10 min 0 15 min 30 min 45 min If you are still asking questions at minute 12, you have already lost the deep dive.
These are guides, not rules. The ratio is what matters: a short scoping phase, a quick broad sketch, a long focused dive, a short honest close.

Try it: drag to any minute. The panel tells you what should be happening, what should be visible on the whiteboard, and — if you are behind — the sentence that buys you back the time.

a 45-minute session
you should be in
Step 1 · Clarify
45 min left
on the whiteboard by now

Doing:

Sounds like:

The clock is a real part of the test. Most failed system design interviews are a time-management failure wearing the costume of a knowledge failure.

It is a loop, not a waterfall

The second structural mistake is treating this as a presentation you deliver. It is a conversation, and the interviewer is a participant — often a deliberately opinionated one. You propose, they push, you revise. Candidates who defend their first diagram against all feedback score badly; candidates who collapse and rebuild from scratch at every comment also score badly.

How to read: Step through it. The four boxes are the nominal path; the last two steps are what turn it from a presentation into a conversation.

the interviewer a colleague, not an examiner 1 · clarifybound the problem 2 · proposeboxes and arrows 3 · deep diveone or two components 4 · wrap uplimits and next steps “are these the right assumptions?” “does this look reasonable so far?” “where would you like me to go deeper?” expect to take this loop two or three times
Steps 5 and 6 are the difference between a candidate who is being examined and a candidate who is working with someone.
02

Step 1: clarify — the eight questions


“Ask clarifying questions” is advice nobody can act on under pressure. Here is the actual list. Eight questions bound almost any prompt, and you will not need all eight every time.

#AskWhat it changes in your design
1Which features are in scope? “Design Twitter” could mean posting, the timeline, search, DMs, trends…Everything. This is the single highest-value question and must come first.
2How many users? Daily actives, not registered.Whether you need one database or a thousand machines.
3What is the read:write ratio?Read-heavy means caches and replicas. Write-heavy means queues and sharding.
4Mobile, web, or both?Mobile means unreliable networks, payload size matters, push notifications exist.
5How fresh must the data be? Real time, seconds, or minutes?Decides whether you may cache, replicate asynchronously, or precompute.
6Which matters more under failure — consistency or availability?Picks your database family and your replication strategy. Day 7.
7How long is data retained, and how big is one item?The whole storage estimate. Day 3.
8What can I assume already exists? Auth, a CDN, an ID service…Saves you from designing infrastructure that is not the point of the question.

Pick three or four that matter most for the prompt in front of you. Asking all eight mechanically burns your clarifying budget and reads as a script.

Opening script “Before I design anything, let me make sure I'm solving the right problem. Twitter is a big surface — should I focus on posting and the home timeline, and leave search, DMs and trends out of scope? … Good. What scale are we at — is 10 million daily actives a reasonable number to design against? … And I'd assume this is heavily read-skewed, maybe 100 reads per write — does that match?”

Notice the shape: each question proposes an answer rather than opening a void. “Is 10M DAU reasonable?” is a far better question than “how many users?”, because it shows judgment and it is faster for the interviewer to answer.
Red flag Jumping straight to a solution is the most-cited failure in this chapter, and the reason is not that questions are polite. It is that you will solve the wrong problem — and once you have spent 20 minutes building a search index for a question about timelines, there is no recovering. The interview is not a trivia contest.

Write the answers down where the interviewer can see them: in-scope features, scale, and the handful of numbers you derived. That list is your contract. When you are 30 minutes in and wondering whether to discuss something, you check the list. When the interviewer changes an assumption, you change one line and say what it affects.

03

Step 2: propose — the broad sketch


Now draw. The goal is a diagram the interviewer agrees with, fast — not a complete one. You are buying permission to go deep later.

  1. Name the components out loud as you draw

    Client, load balancer, API servers, cache, database, object storage, queue. Five to eight boxes. If you are drawing the twelfth box you are already too deep.

  2. Sketch the one or two critical API endpoints

    Not a full spec. POST /tweet and GET /feed?cursor= is enough to show you know what the system actually does. The cursor parameter alone tells the interviewer you have thought about pagination.

  3. Sketch the data model

    The two or three tables that matter and their keys. users, tweets(id, user_id, created_at), follows(follower_id, followee_id). The shape of the data usually dictates the shape of the system.

  4. Do the back-of-the-envelope maths

    QPS, peak QPS, storage. Out loud, using Day 3. This is the moment the design stops being a drawing and starts being a claim about reality.

  5. Check in

    “That's my high-level view — does this look reasonable before I pick something to go deeper on?” Then stop talking and listen. Their answer tells you where step 3 goes.

Why the numbers belong here, not later Doing the estimate inside step 2 lets it change the design while changing it is still cheap. If 7,000 writes/second turns out to be fine for one database, you can say so and move on. If 700,000 reads/second falls out of the maths, you know the deep dive has to be about the read path, and you know it at minute 15 instead of minute 40.
What to say out loud “At 10 million daily actives posting twice a day, that's about 230 writes per second — small. But a timeline read fans out across everyone you follow, and at 100:1 read skew I'm looking at roughly 23,000 reads per second with heavy amplification. So the interesting problem here is the read path, and that's where I'd like to spend our time.”

That last sentence is you choosing the deep dive, with a reason. It is one of the strongest things you can say in the whole interview.
04

Step 3: deep dive — where the score is


This is half the interview and the part that distinguishes levels. The instruction in the book is “identify and prioritise components”; in practice it means pick one or two things and go three layers down, instead of going one layer down on eight things.

What loses points

Breadth

  • Touring every box for ninety seconds each.
  • Listing technologies without saying why: “we'd use Kafka, Redis, Cassandra…”
  • Designing things nobody asked about — the admin panel, the CI pipeline.
  • Perfecting the API spec while the hard architectural question goes untouched.
What scores

Depth

  • Picking the component where the scale actually bites, and saying why you picked it.
  • Presenting two options with a real trade-off, then committing to one and owning the cost.
  • Walking a concrete request through your design, including the failure branch.
  • Naming what your choice breaks before the interviewer has to find it.

A deep dive, in the shape it should take

Taking the news feed example to its deep dive — notice this is one component, examined four ways:

BeatWhat you say
Name the problem“Building a timeline on read means querying every account you follow and merging. For someone following 500 accounts that's expensive on every single load.”
Two options“Fan-out on write: when you post, push the tweet into every follower's precomputed feed. Reads become a single cheap lookup. Fan-out on read: build the feed at request time. Writes stay cheap, reads get expensive.”
Commit, with the cost“I'd fan out on write, because the read path dominates at 100:1. The cost is write amplification — one post by an account with 10 million followers means 10 million inserts.”
Handle what you just broke“So I'd make celebrities an exception: above some follower threshold, don't fan out. Their followers merge those few accounts in at read time. A hybrid — which is what Twitter actually landed on.”

Problem → options → commitment → consequence. Four beats, about four minutes, and it demonstrates more than twenty minutes of touring would.

Interview tip — what they are scoring Interviewers are usually marking something close to: scoping (did you bound the problem?), structure (could a colleague follow your reasoning?), trade-offs (did you choose, and did you know what the choice cost?), depth (did you get below the box-and-arrow layer anywhere?), and collaboration (did you listen and adapt?). Notice that “got the right answer” is not on the list.
05

How rounds are actually lost


Everything above is method. This section is the evidence for why the method is shaped that way — a synthesis of public interview reports and interviewer commentary. Read it as reported patterns rather than measured findings, but note how consistently they recur.

The headline, and the one that should change how you study:

The finding that reframes everything There are many public reports of candidates who had studied the exact problem they were asked, had the canonical architecture memorised, and were still rejected. The corollary is direct: recall is not what is being tested. A memorised architecture delivered without the reasoning underneath it is reported as a negative signal rather than a neutral one — because it is easy to detect. The first “why?” finds the floor.
#Failure modeWhat good looks like instead
1Over-engineering before showing the simple version breaks. The most frequently cited failure, including by interviewers. The candidate hears the problem and immediately shards, queues and adds a stream processor, without ever saying what the simple version would be or at what load it stops working. Often driven by anxiety rather than ignorance: silence is uncomfortable and reciting machinery feels like progress.Name the single-database version, estimate where it breaks, and add only what the estimate justifies. “One Postgres handles this until roughly X writes/second — here's the number that forces sharding.”
2Breadth without depth. The one people are most surprised by, because the round “felt good”. A clean complete diagram, then the interviewer picks one box and the candidate adds more boxes around it instead of going inside. Note the symmetry: depth with no coherent overall design is reported as failing too.For every box you draw, be able to say what is inside it, how it fails, and what you traded to use it. Target: complete-but-simple, plus real depth in two or three places.
3Not verbalising alternatives. Making a defensible choice and never saying why — or naming a technology as though the name were the reasoning. The interviewer cannot distinguish judgment from a memorised default, so it scores as the latter.Two or three options out loud, what each optimises and costs, pick one, and name the condition that would make you pick differently.
4Not driving the round. Answering every question adequately and never setting direction. Senior signal is largely about running an ambiguous technical conversation, so passivity reads as a level miss even when every individual answer is fine. Related: monologuing without checking in, and talking over hints — a hint is usually the interviewer trying to save the round.“I see three areas worth a deep dive — the write path, the fan-out, and the dedup. I think the fan-out is most interesting here. Do you want me there, or somewhere else?”
5Time mismanagement, with a specific shape: twenty minutes on requirements, estimation and API design; ten minutes for architecture; nothing left for the deep dive — precisely the section that differentiates level.Self-enforced checkpoints announced in the room, not an approximate sense of pace. A commonly cited one: scope locked and API sketched by roughly minute ten.

Also recurring, less dominant: skipping estimation (then every component choice looks arbitrary); no failure discussion (reads as never having been on call); no monitoring or operations; ignoring cost; rigidity when the interviewer adds a constraint mid-round — adaptation is often the thing being tested; and using vocabulary slightly wrong, which is worse than not using it, because a precise misuse is a strong negative signal.

What this implies for how you prepare These are method gaps, not knowledge gaps, and that changes the training. Three consequences worth acting on: (1) Depth over coverage — fifteen minutes on one concept until it survives interrogation beats an hour skimming five. (2) Attempt before reading — read a solution you have not attempted and you get recognition, and recognition is exactly what collapses under a “why” question. The most valuable sentence you can write after a practice attempt is “where I got stuck”. (3) Rehearse the behaviours, not the facts — restraint, the clock, and the narration are performance skills, and they are invisible to silent reading. Practise saying the plan aloud and calling the checkpoints.

Synthesised from public discussion and prep writeups — Educative, DesignGurus, System Design Trainer, DZone and DEV. Paraphrased throughout; treat each claim as reported rather than verified.

06

Step 4: wrap up — closing with judgment


The last few minutes are free marks that most candidates leave on the table because they are still designing when time runs out. Budget for this phase deliberately.

Closing script “To recap: a stateless API tier behind a load balancer, fan-out on write into a per-user feed cache, with celebrity accounts excluded and merged at read time. The main trade-off is write amplification in exchange for cheap reads, which I took because the traffic is read-skewed.

The first thing that breaks at ten times this load is the fan-out worker pool, so that's what I'd watch — specifically queue depth per channel. If the cache tier goes down, reads fall through to the database and get slow but stay correct. With more time I'd design the ranking layer and work out how to backfill a feed when someone follows 500 accounts at once.”

When it goes wrong, say so

SituationSay this
You are at minute 25 and still in step 2“I'm conscious of time — let me stop broadening and go deep on the read path, since that's where the scale bites.”
You do not know a technology they named“I haven't used Pulsar. I'd be reasoning about it as a durable log with consumer groups — is that close enough to keep going?”
You realise your design is wrong“Actually, that breaks when two writers hit the same key. Let me fix that rather than build on it.” Catching your own bug scores better than not having it.
They keep pushing on one point“You've come back to this twice — I think I'm missing something. What's the case you have in mind?”
You have genuinely run out of things to say“I think the design holds for the requirements we set. Want me to push on scale, on failure modes, or on a feature we scoped out?”
Gotcha — silence Long silences are the one failure mode with no upside. The interviewer cannot grade thinking they cannot hear. If you need a moment, narrate it: “Let me think about the write path for a second — I want to work out whether the fan-out is bounded.” That sentence buys you ten seconds and shows your reasoning.
Q&A

Check yourself


These are not knowledge questions. Each one is a moment that happens in real interviews, where the right move is a sentence rather than a fact.

Q1Twenty minutes in, the interviewer says: “I don't think you need a message queue here.” You do think you need one. What do you say?
  • Remove the queue and move on — they are the interviewer
  • Name the assumption your queue rests on, state the condition under which they are right, and ask which one holds
  • Explain the benefits of queues until they agree
✓ Surface the assumption, then hand the decision back. Something like: “I put it there because I'm assuming the email render plus vendor call takes a few hundred milliseconds, and I don't want that in the request path. If those calls are fast, or if we're fine with the user waiting, you're right and it's complexity for nothing — which is closer to what you have in mind?” Three things happen at once: your reasoning becomes visible (which is the thing being graded), you have shown you know the trade rather than cargo-culting a component, and you have made it easy for them to steer. Caving instantly reads as having no conviction; arguing reads as not listening. And note: sometimes the push-back is a test of whether you fold, and sometimes they genuinely know something about the workload that you do not. Asking distinguishes the two.
Q2You finish your high-level design at minute 18 and the interviewer says “okay, what next?” — offering you no direction. What is the best use of the next sixty seconds?
  • Start adding the components you have not drawn yet
  • Name the component where scale bites hardest, say why, and ask if that is where they want you — then go
  • Ask them which part they would like you to cover
✓ Choose, justify, then offer them the chance to redirect. “The number that worries me is 23,000 timeline reads a second with heavy fan-out, so I'd like to spend our remaining time on the read path — unless you'd rather see something else.” Choosing with a reason is one of the strongest signals available, because prioritising under ambiguity is the actual job. Asking them to pick is a weaker version: it is polite, it is safe, and it hands back the exact judgment they were trying to observe. Adding more boxes is the worst option — it spends your highest-value minutes on the dimension you are least graded on.
Q3The interviewer asks how you would handle a problem using a technology you have genuinely never used. What is the move?
  • Admit you do not know it and ask to move on
  • Say what you would need it to do, name the closest thing you do know, and ask whether the mental model transfers
  • Use the name confidently and reason by vibes
✓ Reason about properties, and check the mapping out loud. “I haven't run Pulsar. I'd be thinking about it as a durable append-only log with consumer groups and replay — close enough to Kafka that my design holds? If it differs somewhere that matters, tell me and I'll adjust.” Systems are made of properties, not brand names, and an interviewer almost always cares whether you can reason about durability, ordering and consumer semantics — not whether you have memorised a product. This converts a gap into a collaboration moment and keeps the design moving. Bluffing fails the moment they probe, and probing is literally their job. Stopping forfeits the question. The one thing to avoid is a long apology: one clause of honesty, then back to the problem.
Q4Mid-deep-dive you realise the approach you have been building for five minutes has a flaw — concurrent writers will corrupt the counter. What do you do?
  • Keep going and hope they do not notice
  • Stop, name the flaw yourself, and fix it before building further on it
  • Scrap the whole design and start again
✓ Catch it yourself, out loud, and fix just that. “Actually — that read-then-write breaks under concurrency; two workers both see the old count. Let me make it an atomic increment instead.” Catching your own bug scores better than not having had it, because interviewers are explicitly looking for self-correction: it is the single best available proxy for how you behave in a design review. Continuing is the worst option, since everything you build on top now has to be unwound when they find it. Starting over is an over-correction that burns your remaining time — the flaw was in one mechanism, not in the architecture. Fix the smallest thing that makes it correct, say what the fix costs, and carry on.
Q5You are at minute 40 of 45, mid-way through designing the sharding strategy, and it is clearly not going to be finished. What is the highest-scoring thing to do?
  • Keep going and try to finish — an incomplete answer looks bad
  • Stop, recap the whole design in three sentences, name the bottleneck and one failure mode, and park sharding as “what I'd do next”
  • Ask for five more minutes
✓ Stop and land it. Running out of time mid-sentence means the interviewer's last impression is a half-drawn diagram, and they write their notes from whatever you said at the end. Five minutes of recap, bottleneck, failure walk-through and “with more time I'd finish the shard key analysis — my instinct is to key on user_id and I'd want to check the celebrity case” demonstrates more than a rushed sharding section would: it shows you know where your design is incomplete, which is a seniority signal. The underlying lesson: finishing a phase you chose to close is strictly better than being cut off in a phase you did not budget for. Build the wrap-up into your clock from the start rather than treating it as what happens if time remains.

Terms used

Functional requirement
What the system does: post a tweet, load a timeline. The features in scope.
Non-functional requirement
How well it must do it: latency, availability, consistency, durability, cost.
Scope
The explicit list of what you are and are not designing. Write it down; it is your contract.
Fan-out on write
Precomputing a result at write time so reads are cheap. Day 11 and Day 12.
Fan-out on read
Computing the result when it is requested. Cheap writes, expensive reads.
Write amplification
One logical write causing many physical writes — the cost of fanning out.
Read:write ratio
How many reads per write. The number that decides where your design effort goes.

What breaks next. You now have the scaffolding: the moves (Days 1–2), the numbers (Day 3), and the structure to deploy them in (Day 4). From here the course stops being general and starts designing specific systems. Day 5 is the first one — a rate limiter, which is small enough to design completely and rich enough to have five genuinely different right answers.

Source: System Design Interview, Ch. 3 — A Framework for System Design Interviews (pp. 1–20). The eight-question checklist, the scripts, the scoring dimensions and the recovery lines are added here to make the chapter's advice actionable.