AlgoViz

What the interview tests

easy 30 min

A design interview is a short piece of real work, watched by someone who writes down what you do.

Video lesson · Chapter 1 of 5

Two people want seat seven

0:00 / 3:10

Four signals in ninety seconds

1:30Reel coming soon

Theory

Read or listen first. About 1 min.

What it is

An interviewer cannot see your thoughts. They see what you ask, draw, say and change. Those visible pieces of behaviour are called signals.

System design is choosing and arranging parts so that a job is done well enough, for enough people, at an acceptable cost. The interview asks you to do a small piece of that in front of someone.

Why it exists

Companies want to know how you would work on a real, unclear problem. A coding exercise shows part of that. A design conversation shows judgement, priorities and how you work with others.

Knowing which signals are collected lets you show them, instead of hoping they are noticed.

A short history

  1. 1970s to 1990s

    Research on hiring compares methods; structured interviews, with the same questions and scoring for everyone, do better than free conversation.

  2. 1998

    Frank Schmidt and John Hunter publish a large review of hiring methods, widely cited for that result.

  3. 2000s

    As web services grow, design questions spread in technology hiring.

Words to know

Signal
Something observable that counts for or against.
Rubric
The written list of signals and levels.
Functional requirement
What the system does.
Non-functional requirement
How well it does it.
Debrief
The meeting where interviewers compare notes.

How it works

Step through the idea, or press Play.

Step 1 of 3

You work. A vague prompt, a board and about 45 minutes

Understand it

Start here

A trial shift in a kitchen

A restaurant does not hire a cook by asking for recipes from memory. The cook works one order while the head chef watches. The finished plate matters, and so does everything on the way to it. A design interview is a trial shift.

One order, four signals
TABLE 4Any allergies?Ask about the order

What it is

System design, in one sentence

System design means making technical decisions so that an application serves its users, at their number and speed, without falling over, costing too much or wearing out the team that runs it. Every decision gives something up, so the subject is trade-offs, not famous diagrams.

The interview is

  • An open problem with many fair answers
  • A conversation you lead
  • A test of how you choose and explain
  • Practice for a real design review

The interview is not

  • A quiz on product names
  • A race to draw the most boxes
  • A coding round without a compiler
  • A trick with one hidden answer

A picture you will see often

Users, a load balancer, three servers, a cache and a database. Here the cache is drawn as read-through. It is a common shape, not a required first drawing.

Why growth is hard

Why not just add servers?

More copies of a service help only when the service is the limit. Often the limit is the database, a single hot item, distance or the cost of mistakes. The table shows pressures that often appear. The user counts are only a rough guide, because a million quiet users can be less work than ten thousand busy ones.

Pressures that tend to appear

Users, roughlyOften calledWhat starts to hurtCandidates to consider
100Hobby projectVery little: one server and simple queries are fine, no cacheOne server, one database, backups
10 thousandGrowing productSlow pages, slow queries, complaints about speedBetter indexes first; then 2 to 3 servers with a load balancer, a replica, basic caching
1 millionGrowing companyReads or writes near one database's limit, stale caches, every release touches everyoneAutoscaling, a shared cache, a CDN, queues, gradual releases; splitting data if measured
100 million or moreGlobal platformDistance, copies that disagree between regions, partial failures, costSeveral regions, global load balancing, events, services split by team, cost reviews, machine learning for capacity where it pays
Do not buy a row because of the user count. Work out the load, find the limit, then choose.

Users are not load

10M users×100 requests/day100,000=10,000/s,peak≈3×10,000=30,000/s\frac{10\text{M users} \times 100\ \text{requests/day}}{100{,}000} = 10{,}000/\text{s}, \qquad \text{peak} \approx 3 \times 10{,}000 = 30{,}000/\text{s}
The exact average is 1 billion / 86,400, about 11,600 a second. If one database in your test handles 5,000 of these reads a second, reads need a cache or replicas.

Why they ask

Four reasons behind the round

  • It looks like the job

    Engineers discuss designs, compare options and write down decisions. It is closer to that work than a puzzle, though most days still hold plenty of code.

  • It shows communication

    Can you explain a hard idea, listen, and work on one drawing with someone?

  • It shows experience

    Running real systems teaches trade-offs. Study and practice teach them too, and follow-up questions show how deep the understanding goes.

  • It helps set the level

    The same prompt can be answered at several depths, so the round often carries more weight for senior roles.

The scorecard

Four signals, strong and weak

No two companies share one scorecard, and nobody outside sees the exact form. These four headings cover what they commonly look for.

What each signal looks like

SignalThe question in their headStrongWeak
ScopingDo you find out what to build?Asks about users, features and targets; separates what it does from how well; says what comes first and what is outDesigns at once, never asks about scale, ignores constraints
DesignCan you build the whole?A clear drawing, data flow, the API, a working path, then growth with reasonsStarts at table columns, adds everything on day one, misses a part the features need
Technical judgementDo you know why?Compares options, uses numbers, finds bottlenecks first, covers edge cases and failureKnows one answer, no cost, unrealistic sums, no failure modes
CommunicationCould we work together?Says the plan, checks in, takes hints, sums upLong silence or no pause, defends an error, loses the thread

Where each signal shows

Communication is graded the whole way through.

Word for word

Sentences that carry a signal

SignalWeak sentenceStrong sentence
Scoping"I know this one.""Before I design: how many people use it, is it read more than written, and how fast must it answer?"
Scoping"It should support everything.""Three features: see free seats, book, cancel. Reports are out for now. Is that fair?"
Design"Users, load balancer, servers, cache, database, done.""First one service and one database, and I will follow one booking through. Then I will see what breaks."
Judgement"Cassandra, because it scales.""These writes are many, small and always read by key, and a few seconds of staleness is fine, so I lean to a wide-column store. The cost is no joins. If we needed transactions I would stay with MySQL."
Judgement"We add shards.""10,000 reads a second on average, 30,000 at peak. My assumed database handles 5,000, so a cache or replicas, and the writes still fit."
CommunicationSilence"I am choosing between two keys. Give me ten seconds, then I will say both."

Worked example 1

Library seats, with the notes

Minutes 0 to 3

  1. Interviewer

    Let readers book study seats in the city's libraries.

  2. You

    Two kinds of people: readers who book, and librarians who block a broken seat. For readers I would do three things: see free seats, book one, cancel. Is that the right core?

  3. Interviewer

    Yes.

  4. You

    One thing must never happen: two readers with the same seat in the same slot. And I expect a rush when booking opens. When is that?

  5. Interviewer

    Nine o'clock.

  6. You

    Then the hard part is the 9:00 rush on a few seats, not storage. I will get one correct booking working first, then spend our time there. Is that a good plan?

What the interviewer may write

HeardNoteSignal
"Three things: see, book, cancel"Chose a small scope, checked itScoping +
"Must never happen: two readers"Found the correctness rule unpromptedJudgement +
"The hard part is the rush, not storage"Named the crux at minute 3Judgement +
"Working first, then time there"Gave a plan and askedCommunication +

Worked example 2

Recipe sharing, a weak start repaired

Minutes 4 to 9

  1. You

    I will put the recipes in a sharded store with Kafka in front and Elasticsearch behind.

  2. Interviewer

    How many recipes are posted a day?

  3. You

    I did not ask, and I should have. What should I assume?

  4. Interviewer

    Ten thousand.

  5. You

    That is one write every eight or nine seconds. Shards and Kafka have no job here, so I take them back. One PostgreSQL with text search, and a place for photos. Photos are the real volume.

  6. Interviewer

    Good. Go on.

The other chair

From notes to a decision

What usually happens

  1. 1

    During

    They type phrases and times, so they may look away. It is not a bad sign.

  2. 2

    Straight after

    They write feedback: evidence for and against, under each heading.

  3. 3

    Rating

    They choose a result and often a level, usually before reading the others.

  4. 4

    Debrief

    The interviewers, or a separate group, weigh all the rounds together.

  5. 5

    Decision

    Hire or not, at which level. A split can lead to one more round.

One interviewer's reasoning

A simplified picture. Real forms differ, but evidence always beats impression.

The blueprint

A 40-minute order, and how it maps

An older plan has five steps in 40 minutes. It is the same journey as our six phases, and leaves five minutes for hellos in a 45-minute slot.

StepMinutesDoSay or askOur phase
1 Clarify5Features; scale, latency, availability; budget, time, existing systems"How many daily users? More reads or writes? What delay is fine? One region or several?"Scope
2 Estimate3Requests a second, storage, bandwidth if it decides something"100M users × 10 a day is about 10,000 a second, 30,000 at peak. 100M records of 1 KB is 100 GB."Numbers
3 Whole design10Main parts, data flow, the calls"What are the services, how do they talk, where does data live?"API, design
4 Deep dive15Data model, API detail, cache and how it is refreshed, edge cases"Relational or not, and why? What do we cache? What if it fails?"Deep dives
5 Scale7Bottlenecks, redundancy, trade-offs"What breaks at ten times? What is a single point of failure? What does speed cost?"Deep dives, wrap-up
5 + 3 + 10 + 15 + 7 = 40. Use it as a guide, not a script: adapt when the interviewer steers. Details are in Running the 45 minutes.

Real failures

When large systems got it wrong

WhereWhat happenedWhat it teachesWhat changed
Twitter, about 2008 to 2013Frequent overload (the "fail whale" page) while a Ruby on Rails monolith grew past its limits. Popular accounts are a separate problem: one post copied to millions of timelinesCopying on write is costly for accounts with millions of followersServices split out over years. The talk cited below describes timelines built on write for most, with the largest accounts merged on read
Instagram launch, October 2010The app took off at once on a single server; the two founders moved it to cloud machines within daysA launch can exceed any plan. Know how you would add capacityMoved to Amazon EC2 and added machines as it grew
Amazon Prime Day, July 2018Press reports of internal documents said too few servers for the surge; a simpler fallback page was usedEven careful teams are surprised. Plan a reduced modeServers were added by hand during the event
GitHub, October 2018A 43-second network break, then databases in two regions each held writes the other lacked; service was degraded for 24 hours and 11 minutesNetworks split. Automatic failover needs a rule about dataGitHub reported changes to failover rules and to testing
Use a failure to ask "how would we notice, and what still works?" Do not recite it.

What to expect

Common prompts and formats

Familiar prompts

PromptDifficultyWhat it stresses
URL shortenerEasierUnique codes, storage, caching
Social feed (Twitter/X)MediumFan-out, timelines, scale
Chat (WhatsApp)MediumLive messages, WebSockets, end-to-end encryption
Video (YouTube)HardProcessing, CDN, recommendations
Ride hailing (Uber)HardLocation search, live updates, matching
Web search (Google)Very hardCrawling, indexing, ranking
Any company may ask any of them, and many ask something new. Learn the stresses, not the answers.

Where to go next in this course

  1. 1

    Building blocks

    Load balancers, caches, databases, queues.

  2. 2

    Distributed systems

    Consistency choices, the CAP theorem and why networks fail.

  3. 3

    Databases in depth

    Relational or not, replication, sharding, and when to use each.

  4. 4

    Full designs

    Guided problems such as the URL shortener, feed and chat.

Summary

The whole topic in one minute.

Four signals matter: scoping, design, technical judgement and communication. Each can be heard in what you say.

The interviewer writes evidence and compares it with a rubric. Give them clear evidence.

  • Four signals: scoping, design, technical judgement, communication.
  • The interviewer writes evidence, so give sentences worth writing.
  • A working design with reasons beats a famous one without.
  • Correcting yourself with a number is a strong signal.
  • Formats differ; the four signals stay the same.

Sources