Skip to the content

Lesson 231 of 296

The 7-step system design method

What you will learn

  • What interviewers assess in a system design round
  • A 7-step method with timings
  • What to say and draw at each step
  • How to handle hints and questions
  • Common mistakes
On this page

What is being assessed?

SignalWhat it looks like
StructureYou follow a clear process instead of jumping around
RequirementsYou ask before designing and agree a scope
FundamentalsYou use the right building blocks for the right reasons
Trade-offsYou say what each choice costs ("this adds latency but survives a region failure")
Scale awarenessYour numbers drive your decisions
Failure thinkingYou ask "what happens when this breaks?"
CommunicationYou think out loud, draw clearly and respond to hints

The 7 steps

StepGoalTime (45-minute round)
1. RequirementsAgree what to build: functional and non-functional5 minutes
2. EstimatesRough numbers: users, requests per second, storage, bandwidth3 to 5 minutes
3. APIThe main endpoints or operations3 to 5 minutes
4. Data modelMain entities, the database choice, keys5 minutes
5. High-level designBoxes and arrows covering every requirement10 minutes
6. Deep divesTwo or three hard parts in detail10 to 15 minutes
7. Wrap-upBottlenecks, failures, monitoring, what you would do next3 to 5 minutes

Say the plan aloud at the start. It reassures the interviewer and keeps you on track.

Step 1: Requirements

Functional requirements: what the system does. List 3 to 5 core features and confirm them. For a URL shortener: create a short link; redirect to the original URL; optional custom alias; optional expiry; click analytics.

Non-functional requirements: how well it does it.

  • Scale: how many users, requests, data?
  • Latency: how fast must reads and writes be?
  • Availability: can it be down for minutes? (99.9% allows about 8.8 hours of downtime a year; 99.99% about 53 minutes.)
  • Consistency: must every user see the latest data immediately, or is a few seconds of delay acceptable?
  • Durability: can any data be lost?
  • Security, privacy, compliance: personal data, payments, GDPR.

Also clarify the read/write ratio (most systems are read-heavy) and what is out of scope.

Step 2: Estimates

Quick, rounded maths (Lesson 232) to decide whether you need one database or fifty, and whether caching is essential. Do not spend too long here; round aggressively.

Step 3: API

Name the main operations, for example:

POST /urls          { longUrl, customAlias?, expiresAt? }  → { shortUrl }
GET  /{code}        → 301/302 redirect
GET  /urls/{code}/stats → { clicks, byDay }

This makes the requirements concrete and shows what data flows where.

Step 4: Data model

The main tables or documents, their keys, and the database choice with a reason ("PostgreSQL: relational data, transactions"; "DynamoDB: simple key lookups at huge scale"; "Cassandra: very high write volume").

Step 5: High-level design

Draw the request path: client → DNS/CDN → load balancer → stateless application servers → cache → database, plus queues and workers for background work. Walk through each functional requirement on the diagram ("when a user creates a link, the request goes ...").

Step 6: Deep dives

Choose (or let the interviewer choose) the hardest parts: generating unique IDs, a hot key, the fan-out of a feed, double booking, exactly-once payments. This is where seniority shows: alternatives, trade-offs, numbers, failure cases.

Step 7: Wrap-up

  • Bottlenecks and how to scale them next.
  • Single points of failure and how to remove them.
  • Monitoring and alerts: metrics, logs, traces (Lesson 257).
  • Security basics.
  • What you would do with more time.

Handling the conversation

  • Think out loud: silence gives the interviewer nothing to assess.
  • Treat hints as gifts: "What if one celebrity has 50 million followers?" means "go deeper on fan-out".
  • State assumptions when the interviewer says "you decide".
  • Start simple, then scale: a single server and database first, then add components only when a requirement or a number demands it.

Common mistakes

  • Designing before agreeing requirements.
  • Naming technologies without reasons ("we'll use Kafka" without saying why).
  • Over-engineering a small system with microservices and sharding.
  • Ignoring failure, consistency and data loss.
  • Forgetting to come back to the non-functional requirements.

How to say it in an interview

"I start by clarifying functional and non-functional requirements and agreeing scope, then do quick estimates of traffic and storage to guide decisions. I define the main API and data model, draw a simple high-level design and walk each requirement through it, then deep-dive on the two or three hardest parts with alternatives and trade-offs. I finish with bottlenecks, single points of failure, monitoring and next steps. I think out loud, start simple, scale only when the numbers require it, and treat interviewer questions as direction."

Key words

WordMeaning
Functional requirementWhat the system must do
Non-functional requirementScale, latency, availability, consistency, durability
Read/write ratioHow many reads per write
High-level designThe main components and how requests flow
Deep diveDetailed design of one hard part
Single point of failureA component whose failure stops the whole system

Now prove it

This lesson is complete when you pass the quiz and all three practice levels.