Skip to content

The Design Interview Framework

System design at SDE-1 is not “design Netflix from scratch and get every number right”. It is a test of whether you can think out loud in a structured way, ask sensible questions, and reason about tradeoffs in systems you’ve actually built.

When you panic, you jump straight into drawing boxes. This page exists so that never happens. Memorise the six steps. Say them out loud at the start.

They expect They do NOT expect
Clarifying questions before designing Exact capacity math
A clean API + schema Knowledge of Kafka internals, Paxos, Raft
A sensible diagram: client, LB, servers, DB, cache, queue, storage Multi-region active-active design
Knowing why you’d add a cache / queue / replica Using every buzzword
Honest tradeoffs (“this is simpler but…”) Pretending you’ve run things at 1M QPS
Deep knowledge of your own projects —

Most SDE-1 “design” rounds in India are actually one of:

  1. “How would you scale your project?” — see Design My Projects. This is the most likely one.
  2. Basic HLD — URL shortener, rate limiter, chat, notifications. See Classic Designs.
  3. LLD / OOP — parking lot, LRU cache, BookMyShow. See LLD & OOP.
  4. Frontend system design — typeahead, infinite feed. See Frontend System Design.

┌──────────────────┐ ┌────────────┐ ┌──────────────┐
│ 1. Requirements │──▶│ 2. Estimate│──▶│ 3. API + │
│ (func + non-fn) │ │ (rough) │ │ Data model │
└──────────────────┘ └────────────┘ └──────┬───────┘
│
┌──────────────────┐ ┌────────────┐ ┌──────▼───────┐
│ 6. Tradeoffs & │◀──│ 5. Deep │◀──│ 4. High-level│
│ wrap-up │ │ dive │ │ diagram │
└──────────────────┘ └────────────┘ └──────────────┘

Rough time split for a 45-min round: 5 / 3 / 7 / 10 / 15 / 5.

Split them into two lists and write them down (on the whiteboard / shared doc).

Functional = what the system does (features). Non-functional = how well it does it (scale, latency, availability, consistency, security, cost).

Questions to ask (pick 4–5, don’t interrogate):

  • “Who are the users, and roughly how many? Daily active?”
  • “What are the 2–3 core features we must support? Can I park X for now?”
  • “Is this read-heavy or write-heavy?”
  • “How fresh does data need to be — is a few seconds of staleness okay?”
  • “Is it okay to lose some data (e.g. analytics) or must every write be durable (e.g. payments)?”
  • “Mobile, web, or both? Any global users, or mainly India?”

Step 2 — Estimates (2–3 min, keep it rough)

Section titled “Step 2 — Estimates (2–3 min, keep it rough)”

Only do the math that changes a decision. The goal is “does this fit on one machine or not?”

Handy numbers:

Thing Value
Seconds in a day ~86,400 ≈ 10^5
1M requests/day ≈ 12 req/s average (peak ≈ 2–5x)
100M requests/day ≈ 1,200 req/s
A single Node/Express server ~1k–5k simple req/s
A single Postgres thousands of simple queries/s; connections ~100–500
Redis ~100k ops/s
1 KB × 1M rows ~1 GB

Example: “1M DAU, each does 20 reads and 2 writes a day → 20M reads/day ≈ 230 reads/s, peak ~1,000/s. Writes ~25/s. So this is read-heavy — caching and read replicas will matter more than write scaling.”

API: list 3–5 endpoints for the core features. REST is fine.

POST /api/videos -> { uploadUrl, videoId }
GET /api/videos/:id -> { id, status, streamUrl }
GET /api/feed?cursor=... -> { items: [...], nextCursor }

Mention: auth (JWT / session cookie), pagination (cursor), idempotency key for writes that must not duplicate.

Data model: tables with key columns, primary keys, and the one or two indexes that matter.

users(id PK, email UNIQUE, role, created_at)
videos(id PK, owner_id FK -> users, status, created_at)
INDEX (owner_id, created_at DESC)

Say SQL vs NoSQL and why in one sentence: “Relational data with joins and constraints → Postgres. I’d only consider a NoSQL store if we had a huge write volume with simple key lookups.”

Start with the simplest thing that works, then evolve. Default skeleton:

Client ──▶ CDN ──▶ Load Balancer ──▶ App servers (stateless) ──▶ DB (primary)
│ │ │
│ └──▶ Cache (Redis) └─▶ Read replica
└──▶ Queue ──▶ Workers ──▶ Object storage

Walk through one request end to end: “A user uploads a video: client asks the API for a presigned URL, uploads directly to storage, storage fires an event, we enqueue a job…”

This “v1 then v2” approach is gold at SDE-1 — it shows judgement instead of over-engineering.

Step 5 — Deep dive / bottlenecks (15 min)

Section titled “Step 5 — Deep dive / bottlenecks (15 min)”

Ask: “What breaks first?” Then fix it. Usual suspects, in order:

  1. Database — too many reads → cache + read replicas + indexes. Too many connections → pooling.
  2. Slow synchronous work — PDF generation, video processing, emails, third-party APIs → move to a queue + workers.
  3. Big files through your server → presigned URLs directly to object storage + CDN.
  4. Stateful servers (sessions in memory, WebSocket connections) → externalise state (Redis), sticky sessions, pub/sub adapter.
  5. Hot keys / abuse → rate limiting, caching hot items.
  6. Single points of failure → replicas, multiple instances, health checks.

That sentence pattern — bottleneck → reason → fix → cost — is the whole interview. Practice saying it.

Summarise in 30 seconds and name tradeoffs explicitly:

  • “I chose eventual consistency for the feed because a few seconds of delay is fine, which lets me cache aggressively.”
  • “I used a queue so uploads return instantly — the cost is more moving parts and needing retries + idempotency.”
  • “With more time I’d add monitoring (latency p95, queue depth, error rates) and alerting.”

Always mention monitoring/observability at the end. It’s a cheap signal of maturity.


Situation Say this
You don’t know a technology “I haven’t used X in production, but my understanding is it does Y. In my project I solved a similar problem with Z.”
Interviewer pushes back “That’s a fair point. The tradeoff is ___. If ___ matters more, I’d switch to ___.”
You’re stuck “Let me step back and look at the requirements again… the key constraint was ___.”
Too many directions “There are a few things I could go deeper on — the database, the upload path, or real-time updates. Which would be most useful?”
Asked for numbers you don’t know “I’d want to load-test to know for sure, but as a rough guess ___.”
Q: What are the 6 steps, in order?

Requirements (functional + non-functional) → Estimates → API + Data model → High-level diagram → Deep dive / bottlenecks → Tradeoffs & wrap-up.

Q: Functional vs non-functional requirements?

Functional = features (“users can upload videos”). Non-functional = qualities (“p95 latency under 200 ms, 99.9% available, uploads up to 1 GB, eventual consistency OK”).

Q: What's the bottleneck sentence pattern?

“The first bottleneck will be X because Y. I’d fix it with Z, and the cost is W.”

Q: 1M requests per day is roughly how many per second?

About 12/s average (1M / ~86,400). Assume peak is 2–5x that.

Q: Why start with a simple v1 design?

It proves you can ship something that works, then lets you show judgement by identifying exactly what breaks and fixing only that. Jumping to a complex design suggests you’re pattern-matching, not reasoning.

Q: What should you always mention at the end?

Tradeoffs you made, failure handling (retries, idempotency), and monitoring (latency, error rate, queue depth, alerts).