Answer method

System design: a six-step order for a 45-minute round

Most system design approaches follow the same order, though they name and count the steps differently: clarify the requirements, estimate the scale, define the API and data model, sketch a high-level design, go deep on the hardest part, and finish with bottlenecks and trade-offs. Interviewers look at how you handle ambiguity and trade-offs, not only the final diagram, so the first five minutes of questions matter as much as the boxes you draw.
4 min read · worked example
Where the 45 minutes go
1
Requirements
15%
2
Estimates
10%
3
API and data
15%
4
High-level design
20%
5
Deep dive
25%
6
Trade-offs
15%
Rough share of the time in a strong answer.
At a glance
  • 01
    Spend the first minutes on requirements; designing before them is the most common mistake.
  • 02
    Pick one hard part and go deep, rather than drawing every box shallowly.
  • 03
    Name the trade-offs yourself before the interviewer asks.

Weak and strong, step by step

A classic design question, tied to a project on the resume, answered two ways.
From the resume
“Built a URL shortener with Redis caching (personal project).”
Interviewer
Design a URL shortener like the one on your resume, for a large company.

Requirements

~15% of the time
"Shorten a URL and redirect it; custom aliases optional. Do links expire? I'd assume far more redirects than new links. Do redirects need to be fast worldwide, and do we need click analytics?"
What changes: What it must do, and how well, before any design. These answers decide everything after.

Estimates

~10% of the time
"Say 100 million new links a month, about 40 a second, and 100 redirects per new link, so about 4,000 redirects a second. At about 500 bytes a link, roughly 600 GB a year."
What changes: Rough numbers that shape the design: heavy on reads, modest on storage.

API and data

~15% of the time
"POST /links returns a short code; GET /{code} redirects. One table: code, long URL, owner, created. Every read is by code, so the code is the key."
What changes: The interface and the access pattern, which decide the storage.

High-level design

~20% of the time
"Stateless servers behind a load balancer, a key-value store for links, a cache in front of it for popular codes, and a separate service that hands out unique codes."
What changes: The main parts, and why each one is there.

Deep dive

~25% of the time
"The hard part is unique codes without collisions. Hashing and truncating can collide; a counter in base 62, handed to each server in ranges, never collides and needs no coordination per request. I'd use ranges."
What changes: One hard problem, with options and a choice. Depth here is what separates answers.

Trade-offs

~15% of the time
"The cache is the weak point for a viral link; I'd replicate hot keys. Ranges waste codes when a server dies, which is fine at this scale. Analytics go to a queue so redirects stay fast."
What changes: Names the weak points and what was given up, before the interviewer asks.

What interviewers listen for

The diagram matters less than how you arrived at it.
  • 01
    Questions before answers: scope, users, scale.
  • 02
    Numbers that change decisions, not numbers for show.
  • 03
    Trade-offs stated plainly: what you chose and what you gave up.
  • 04
    Adjusting when pushed back on, rather than defending.

When the system is on your resume

If your resume says you built something, the interviewer may ask you to design it at a much larger scale. Know your own design's limits: what would break first at a hundred times the load, and what you would change.

One order, many names

Guides describe this as four, five, six or seven steps, and differ on whether estimates or the API come first. The order matters less than covering requirements before design and leaving time for one deep part and the trade-offs.

Where DEFEND fits

See which of your own lines need this most.
DEFEND reads your own resume claim by claim and shows the design concepts behind the systems on your resume, such as caching, queues or replication, and the depth an interviewer is likely to expect for each. Start with the free preview: no sign-in, about a minute.

Common questions

No. Guides name four to seven steps. What they share is requirements first, then a high-level design, then depth on one part, then trade-offs.