Skip to content
Tech Intuition
Tech Intuition

Appearance

Theme

Signal · Dark with amber

Background

Slow stars and the odd comet

Connect

Framework · Lesson 1 of 44

A framework for system design interviews

A repeatable seven-step method for turning a vague prompt into a defensible design in 45 minutes, and the mistakes that sink otherwise strong candidates.

FrameworkFoundation7 min readUpdated

  • 1 architecture diagram
  • 3 self-checks
By the end you will be able to
  • Clarify scope and numbers before you draw anything.
  • Drive the conversation: you lead, the interviewer steers.
  • Spend your depth on the one or two components that are genuinely hard.
  • Name failure modes and trade-offs out loud; that is the signal being tested.
Prefer to watch? · 11 min video

A system design round is not a quiz with a correct answer. The interviewer is checking whether you can take an ambiguous problem, make reasonable decisions, defend them, and change your mind when the constraints change. That is most of senior engineering, compressed into 45 minutes.

Most people who struggle do not lack knowledge. They lack a method, so they start drawing boxes, run out of time, and never reach the part of the design that matters. This lesson gives you the method. The rest of the track gives you the building blocks to fill it with.

The seven steps of a system design interview

1. Clarify the problem (3–5 minutes)

Ask what the system must do, for whom, and how well. Split your questions in two:

  • Functional: what can a user do? Pick the two or three core use cases and say you are deliberately leaving the rest out.
  • Non-functional: how many users, how read-heavy or write-heavy, what latency is acceptable, how bad is downtime (state it as an objective in minutes, as the SLO lesson shows), how bad is stale data?

2. Estimate the scale (3–5 minutes)

Back-of-envelope numbers decide the architecture. A system that handles 10 requests a second and one that handles 100,000 are different designs. Work out:

  • Requests per second, average and peak. Remember that a day has about 100,000 seconds (86,400), so 1 million requests a day is roughly 12 per second.
  • Storage over the system's lifetime: records × size × retention.
  • Bandwidth, if you move large payloads such as images or video.

Round aggressively. The goal is the right order of magnitude, not three decimal places. Design for peak, not average: peak traffic is commonly assumed to be two to ten times the average, with 3x a typical default. Say your assumptions aloud, including the read-to-write ratio, so they can be corrected.

3. Define the API and data model (5 minutes)

Write the two or three endpoints that realise the core use cases, then sketch the main entities and how they relate. This forces precision about what the system actually stores, and it usually reveals the access patterns that drive your choice of database. For each endpoint, say what it does when the client retries, when two clients write at once and when the list changes under a reader (the API design lesson covers all three).

4. Draw the high-level design (10 minutes)

Start with the simplest thing that could work: client, load balancer, stateless service, database. Trace one request end to end for each core use case. Only then add components, and add each one for a stated reason: "reads dominate, so I am adding a cache here."

5. Go deep where it is hard (10–15 minutes)

Every design has one or two genuinely difficult parts: how to generate unique IDs, how to fan out a feed, how to keep counters consistent across servers. Pick them yourself, say why they are hard, compare at least two options, and choose one with a reason. This is where you earn the most signal. An interviewer will often steer you here; follow them.

6. Break it on purpose (5 minutes)

Ask yourself what fails first. A server dies. A database replica lags. A downstream service slows down. A single user sends a thousand times the normal traffic. For each, say what happens and what the system does about it. Naming bottlenecks and single points of failure before you are asked is one of the strongest signals you can send.

7. Wrap up (2 minutes)

Summarise the design in three sentences, state the main trade-off you accepted, and say what you would build next with more time.

HLD

HLD and LLD: two different conversations

Interview loops usually contain both, and they reward different skills. High-level design (HLD) is about the system: which services, stores, queues and caches exist, how data flows between them, and how it scales and fails. Low-level design (LLD) zooms into one box: the classes and interfaces, the schema, the algorithm, the concurrency and the edge cases.

Fig. Zooming in: from the whole system to one method
Fig. Zooming in: from the whole system to one method
HLD roundLLD round
QuestionDesign a URL shortener, a news feed, a chat service, a notification serviceDesign a parking lot, an LRU cache, a rate limiter class
You produceBoxes, flows, numbers, trade-offsInterfaces, classes, schema, code that works
Judged onScale, reliability, choosing and justifying componentsClean abstractions, correctness, concurrency, testability
Typical trapNaming technologies without reasonsOver-engineering with patterns the problem does not need

Every system design lesson here tags its sections so you know which hat you are wearing: HLD for the system view, LLD for the inside of a box, and Senior depth for the follow-ups that separate a strong senior answer from a competent one. A good HLD answer still dips into LLD where it matters, for example the exact schema or the ID-generation algorithm, and a senior candidate is expected to move between the two smoothly.

Back-of-the-envelope numbers that anchor most estimates

QuantityRough value
Seconds in a day86,400 (call it 10^5)
1M requests/dayabout 12 requests/s
100M requests/dayabout 1,200 requests/s
Read from memoryroughly 100 nanoseconds
Round trip inside one data centreroughly 0.5 milliseconds
Round trip across continentsroughly 100–200 milliseconds

These are rules of thumb, not measurements of any particular machine. Their value is relative scale: a network hop costs thousands of times more than a memory read, which is why caches and data locality matter so much.

Habits that separate strong system design answers

  • Think out loud. Silence reads as being stuck. Narrate your options and why you reject some.
  • Tie every component to a requirement. If you cannot say why a box is on the diagram, remove it.
  • State trade-offs as trade-offs. "This gives us lower latency at the cost of possibly stale data" beats "this is better."
  • Keep the diagram readable. A clean diagram with eight boxes beats a crowded one with thirty.

Common system design interview mistakes

  • Jumping to a famous architecture before understanding the question.
  • Skipping estimation, then being unable to justify sharding or caching.
  • Going wide and shallow: naming twenty technologies, explaining none.
  • Treating the interviewer's hint as an attack instead of a gift.
  • Never mentioning failure.

What to study next after the framework

The next lessons cover the building blocks you will reach for in step 4 and step 5: load balancing, caching, replication and sharding, queues and consistency. API design covers retries, pagination and change over time, and authentication and authorization with encryption, secrets and abuse cover who may do what and how data and traffic are protected. Then rate limiting shows several of them interacting in one problem, and the URL shortener puts the whole framework to work. The news feed, chat system and search autocomplete case studies then run it on three more classic prompts.

Check yourself

Try answering out loud before you reveal each answer.

QuestionWhy estimate the scale before you draw anything?Reveal answer

Because the numbers decide the architecture: a system handling 10 requests a second and one handling 100,000 are different designs, and an estimate gives you a reason for choices such as caching or sharding.

QuestionRoughly how many requests per second is 1 million requests a day?Reveal answer

About 12 (1,000,000 / 86,400 is roughly 11.6). By the same arithmetic, 100 million a day is about 1,200 per second.

QuestionOnce the high-level design is drawn, where should you spend your depth?Reveal answer

On the one or two genuinely hard components (ID generation, feed fan-out, consistency), comparing at least two options and choosing one with a stated reason.

Lesson 1 of 44

Nice. Lock it in, then keep going.

Up next · Lesson 2Load balancingHow traffic is spread across servers, the difference between layer 4 and layer 7, the main algorithms, and why the balancer itself must not become the single point of failure.

Send a message

It goes straight to my inbox. I usually reply within a few days.