AlgoViz

Running the 45 minutes

easy 30 min

A design interview is a conversation with a clock.

Video lesson · Chapter 1 of 5

Twenty-two minutes gone

0:00 / 3:38

The 45-minute plan

1:20Reel coming soon

Theory

Read or listen first. About 1 min.

What it is

A system design interview is a conversation about building something, usually 35 to 60 minutes long. You lead most of it, and you leave a design behind.

Running it well means spending the minutes where they count: agreeing what to build, drawing something that works, and going deep in two places.

Why it exists

Most people who struggle know enough. They run out of time with half a design, or spend it on the easy part.

A plan for the minutes frees your attention. You always know what comes next, and whether you are late.

A short history

  1. 1958

    The US Navy's PERT chart plans large projects as steps with times.

  2. Late 1980s

    Francesco Cirillo works in timed blocks, later called the Pomodoro technique.

  3. 1995

    Scrum is presented publicly; fixed timeboxes become common in software teams.

  4. 2000s

    Design rounds become a normal part of hiring at large technology companies.

Words to know

Phase
A stretch of the interview with one purpose.
Timebox
A fixed amount of time for something, finished or not.
Checkpoint
A moment to compare the clock with the plan.
Deep dive
A detailed look at one hard part.
Wrap-up
The closing summary.

How it works

Step through the idea, or press Play.

Step 1 of 3

Agree. Scope, then the numbers and calls that matter

Understand it

Start here

A train that waits for nobody

Think of the interview as a train journey. It calls at five stations, once each (numbers and API share a stop). You can enjoy a station, but if you stay too long you miss the rest of the trip.

Five stops, one journey
SCOPEminute 0Stop 1 of 5

The plan

Where the minutes go

StartPhase45 min60 minYou leave with
0:00Scope57About three features, targets, what is out
0:05Numbers57The sums that decide something
0:10API and data56One call per feature, the main record and key
0:15Design1015A working system, grown step by step
0:25Deep dives1518Two hard parts, decided
0:40Wrap-up57Summary, weak point, next step
Start times are for 45 minutes. Scale them if you have 35 or 60, and keep the last five for the end.

Six phases

Check the plan adds up

5+5+5+10+15+5=45,7+7+6+15+18+7=605 + 5 + 5 + 10 + 15 + 5 = 45, \qquad 7 + 7 + 6 + 15 + 18 + 7 = 60
Introductions often take five minutes of the slot. If so, take them from deep dives.

One map

Other names for the same plan

You may have seen this as four phases, as nine steps, or as SACRED. They are the same journey with more or fewer labels.

Our sixFour phasesNine steps
Scope1 Requirements and scope (what and why)1 Requirements and scope
Numbers2 High-level design (how, big picture)3 Capacity planning
API and data2 High-level design2 API design, 5 Database design
Design2 High-level design4 Architecture design, 6 System flows
Deep dives3 Deep dive (how, details)7 Edge cases and trade-offs, 8 Deep dive
Wrap-up4 Wrap-up (summary and next steps)9 Summary

Phase 1

Scope

  1. 1

    Core features

    What must it do? Aim for about three.

  2. 2

    People and access

    Who uses it, how often, reading or writing?

  3. 3

    Quality targets

    Scale, latency, availability, with numbers.

  4. 4

    Out of scope

    Say it, so they can object now.

  5. 5

    Say it back

    One sentence that both of you agree on.

Opening

  1. Interviewer

    Design a messaging system like WhatsApp.

  2. You

    Let me understand the scope first. One-to-one messages, groups, or both?

  3. Interviewer

    One-to-one first, able to extend to groups.

  4. You

    Good. And how many users should I design for?

Questions to choose from (pick five or six)

  • Features

    Core features? User types? Actions? Mobile, web or both? Special workflows? Live updates, or is a delay fine?

  • Quality

    Daily and monthly users? Read to write ratio? Acceptable latency? 99.9% or 99.99%? Several regions? Compliance or security rules?

  • Data

    How much? Kept how long? Structured or not? Hot and cold access? Strong or eventual consistency? Must it stay in a country?

  • Traffic

    Requests a second? Spikes? Growth? Peak to average? Can something go viral?

  • Limits

    What is out? Budget? Existing systems to reuse? Required technology? Timeline?

When to ask what

Do not read out the whole list. Start with features, move to quality, and let it be a conversation.

Five kinds of question, one example (ride sharing)

  1. Interviewer

    Design a ride-sharing service like Uber.

  2. You

    Rider, driver, or both?

  3. Interviewer

    Both. On-demand rides only.

  4. You

    How many daily users should I design for?

  5. Interviewer

    50 million, in more than 100 cities.

  6. You

    I propose matching in under 2 seconds and 99.99% availability. Are payments, onboarding and ratings out of scope?

  7. Interviewer

    Yes. Focus on matching and live tracking. Which database would you choose?

  8. You

    Redis for live positions, because they change every few seconds and can be lost. Cassandra for position history, which is write-heavy. Trips need transactions, so a relational database.

  9. Interviewer

    And the rush hour?

  10. You

    Autoscale the stateless services, batch the GPS updates, and queue ride requests with priority when we are over capacity.

Phases 2 and 3

Numbers, then API and data

Say what you are about to work out and why. "Peak reads will tell me whether I need a cache." Stop when you have the answer.

Worth the time

  • Peak reads and writes a second
  • Storage over the life of the system
  • Open connections, for live systems
  • One call for each feature
  • The key that answers the main query

Skip unless asked

  • Exact bandwidth bills
  • Every field of the user table
  • Error codes for every call
  • Machine types and prices

Phase 4

Design

  1. 1

    Draw the smallest version

    Take each feature and follow it from client to storage.

  2. 2

    Choose the store and say why

    Match it to the main query and to what must not go wrong.

  3. 3

    Note, do not chase

    Write "cache?" beside a box and keep going.

  4. 4

    Add what the numbers require

    Caches, queues, a CDN, load balancers: only with a reason.

  5. 5

    Walk one request through

    Say what changes in each box.

Phase 5

Deep dives

  1. 1

    Pick the part that fails a target

    Or the one the interviewer keeps returning to.

  2. 2

    Offer two or three options

    One sentence each.

  3. 3

    Choose

    Reason, cost, and what would change your mind.

  4. 4

    Break it

    What fails, who notices, how it recovers.

  5. 5

    Check the trade-off

    Consistency or availability, latency or cost.

Following the interviewer

Phase 6

Wrap-up

  1. 1

    Decisions

    Two or three, each with its reason.

  2. 2

    Weak point

    Name it before they do.

  3. 3

    How you would know

    Monitoring, alerts, what you would measure.

  4. 4

    Next

    What you would improve with more time.

  5. 5

    Ask

    "Is there anything you would like me to go deeper on?"

Checkpoints

Am I on time?

Minute45-minute interview60-minute interview
7In numbersScope done
10Numbers doneIn numbers
15Starting to drawIn API
25Working design, choosing a deep diveDrawing
35Second deep diveDesign complete
40Start the summary, whatever is openIn deep dives
53Start the summary
Glance at the clock at 10, 25 and 40.

A clean change of phase

  1. You

    I have spent about five minutes on requirements. Let me summarise and move to the numbers.

  2. Interviewer

    Sounds good, go ahead.

  3. You

    Then I will sketch the architecture, and we can dive into any component you like.

Recover

When it goes wrong

Late? Decide in ten seconds

It happensDo thisSay this
You are lateShorten the next phase, keep the summary"I will draw the short version now."
You are stuckPark it, keep the system moving"I will treat this as a box and come back."
You made a mistakeCorrect it plainly"That breaks on a retry. I would change it to..."
You do not know a termSay so, reason from need"I have not used it. What I need is..."
They disagreeAsk what they see, weigh it, decide"That is a fair point. It changes my choice because..."
They give a hintTake it"You are pointing at the hot key. Let me look."

Summary

The whole topic in one minute.

Six phases fill 45 minutes: 5, 5, 5, 10, 15 and 5. Finish the whole before polishing a part.

One sentence closes each phase. If you are late, cut depth and keep the summary.

  • Six phases: 5, 5, 5, 10, 15, 5.
  • Finish the whole before polishing a part.
  • One sentence closes each phase and opens the next.
  • Cut depth when late, never the summary.
  • Follow the interviewer: a question is a signal.

Sources