system-design-primer
reference — in the room

How to approach the question

in short — written for this site
Four steps: outline the use cases, sketch a high level design, design core components, then scale it.
1. use cases
Who uses the system, how, and how often. Constraints: traffic, data volume, read/write ratio, latency budget.
2. high level design
Sketch the main components and connections. Justify your ideas before adding detail.
3. core components
Dive into the two or three parts the problem actually turns on — the data model, the hot path, the fan-out.
4. scale the design
Identify and address bottlenecks. Load balancing, horizontal scaling, caching, database sharding — each with its trade-off named.
from the primer — full sectionsynced

How to tackle a system design interview question.

The system design interview is an open-ended conversation. You are expected to lead it.

You can use the following steps to guide the discussion. To help solidify this process, work through the System design interview questions with solutions section using the following steps.

Step 1: Outline use cases, constraints, and assumptions

Gather requirements and scope the problem. Ask questions to clarify use cases and constraints. Discuss assumptions.

  • Who is going to use it?
  • How are they going to use it?
  • How many users are there?
  • What does the system do?
  • What are the inputs and outputs of the system?
  • How much data do we expect to handle?
  • How many requests per second do we expect?
  • What is the expected read to write ratio?

Step 2: Create a high level design

Outline a high level design with all important components.

  • Sketch the main components and connections
  • Justify your ideas

Step 3: Design core components

Dive into details for each core component. For example, if you were asked to design a url shortening service, discuss:

  • Generating and storing a hash of the full url
    • MD5 and Base62
    • Hash collisions
    • SQL or NoSQL
    • Database schema
  • Translating a hashed url to the full url
    • Database lookup
  • API and object-oriented design

Step 4: Scale the design

Identify and address bottlenecks, given the constraints. For example, do you need the following to address scalability issues?

  • Load balancer
  • Horizontal scaling
  • Caching
  • Database sharding

Discuss potential solutions and trade-offs. Everything is a trade-off. Address bottlenecks using principles of scalable system design.

Back-of-the-envelope calculations

You might be asked to do some estimates by hand. Refer to the Appendix for the following resources:

Source(s) and further reading

Check out the following links to get a better idea of what to expect:

sourcedonnemartin/system-design-primer / README.mdanchor#how-to-approach-a-system-design-interview-questionsyncedsynced from donnemartin/system-design-primer@master · 2026-08-16