TExcelTAD
Home › System Design › The Interview Framework

The Interview Framework

System design interviews are open-ended on purpose: "Design Instagram" in 45 minutes has no single right answer. Interviewers are judging how you think: whether you clarify before building, reason with numbers, make trade-offs explicit and go deep where it matters. A repeatable framework keeps you from freezing or rambling. The same steps work for real design reviews at work.

The four steps

Step Time (45 min) Goal Output
1. Scope the problem ~5 min Agree on what to build and how well Functional + non-functional requirements, out-of-scope list
2. Estimate and define the API ~5 min Know the scale; fix the interface QPS, storage, bandwidth; endpoints and data model
3. High-level design ~10-15 min A complete, simple design that works Boxes and arrows covering every requirement
4. Deep dive and wrap-up ~15-20 min Show depth on the hardest parts Bottlenecks, failure handling, trade-offs, what you'd do at 10x

The time budget is worth practising. A tiny helper turns any interview length into a plan:

python · try it yourself
STEPS = [("Scope: requirements & constraints", 0.11),
         ("Estimate & API", 0.11),
         ("High-level design", 0.30),
         ("Deep dives", 0.38),
         ("Wrap-up: bottlenecks, trade-offs, questions", 0.10)]

def plan(total_minutes):
    clock = 0.0
    print(f"--- {total_minutes}-minute interview ---")
    for name, share in STEPS:
        minutes = total_minutes * share
        print(f"{clock:4.0f}-{clock + minutes:2.0f} min  {name}")
        clock += minutes

plan(45)
plan(60)
--- 45-minute interview ---
   0- 5 min  Scope: requirements & constraints
   5-10 min  Estimate & API
  10-23 min  High-level design
  23-40 min  Deep dives
  40-45 min  Wrap-up: bottlenecks, trade-offs, questions
--- 60-minute interview ---
   0- 7 min  Scope: requirements & constraints
   7-13 min  Estimate & API
  13-31 min  High-level design
  31-54 min  Deep dives
  54-60 min  Wrap-up: bottlenecks, trade-offs, questions

Step 1: scope

Ask before you draw. Good questions are about users, features, scale and quality:

  • Who uses it and how? Which features are in scope for today?
  • How many users (DAU), how many actions per user, how much data per action?
  • What matters most: latency, availability, consistency, cost?
  • Read-heavy or write-heavy? Global or one region? Mobile clients?

Then write the requirements down where the interviewer can see them and confirm them. Two sentences of out-of-scope ("no search, no ads") save ten minutes later.

Step 2: estimate and API

Do quick maths out loud, rounded aggressively, and say what it implies ("~20k reads/s means we need caching and replicas; 100 writes/s is fine for one primary"). Then define the API (a few endpoints with parameters) and the core entities.

A checklist helper makes sure no requirement is forgotten by the end of the high-level design:

python · try it yourself
requirements = {
    "post a photo": ["upload service", "object store", "metadata DB"],
    "follow a user": ["graph service", "metadata DB"],
    "home feed < 200 ms": ["feed cache", "fan-out workers", "CDN"],
    "99.95% availability": ["replicas", "multi-AZ", "load balancer"],
    "photos never lost": ["object store", "replication"],
}

design_components = {"upload service", "object store", "metadata DB", "feed cache",
                     "fan-out workers", "CDN", "load balancer", "replicas"}

for req, needs in requirements.items():
    missing = [c for c in needs if c not in design_components]
    status = "covered" if not missing else "MISSING " + ", ".join(missing)
    print(f"{req:<22} {status}")
post a photo           covered
follow a user          MISSING graph service
home feed < 200 ms     covered
99.95% availability    MISSING multi-AZ
photos never lost      MISSING replication

The check flags gaps (no graph service, no multi-AZ deployment, no replication of the object store) before the interviewer does.

Step 3: high-level design

Draw the simplest design that satisfies every requirement: clients, load balancer, services, data stores, caches, queues, CDN. Walk through the main flows (a write and a read) on the diagram. Resist premature optimisation; "one PostgreSQL primary with two replicas" is a fine start if the numbers allow it.

text
clients -> CDN (images) ;  clients -> LB -> API servers -> cache -> DB (primary + replicas)
                                              |
                                              +-> queue -> workers (fan-out, thumbnails)

Step 4: deep dive

Pick the 1-3 hardest parts, or ask the interviewer which they'd like to explore. Typical deep dives:

Topic Questions to answer
Data model and partitioning Partition key? Hot keys? Secondary indexes?
Caching What is cached, invalidation, hit ratio, stampedes
Consistency Where do you need strong consistency, where is eventual fine?
Failure modes What happens if each box dies? Retries, idempotency, timeouts
Scaling a hot path Fan-out, batching, async processing, sharding

Close by summarising the design, the main trade-offs and what you'd change at 10x scale.

Scoring yourself

After each practice session, rate yourself on the signals interviewers look for. A simple weighted score shows where to practise next:

python · try it yourself
signals = {   # signal: (weight, your score 1-5)
    "clarified requirements":       (2, 4),
    "used numbers to decide":       (2, 2),
    "complete high-level design":   (3, 4),
    "depth on the hardest part":    (3, 3),
    "discussed trade-offs":         (2, 2),
    "handled failures":             (1, 3),
    "communication / structure":    (2, 5),
}

total_weight = sum(w for w, _ in signals.values())
score = sum(w * s for w, s in signals.values()) / total_weight
print(f"weighted score: {score:.2f} / 5")
weakest = sorted(signals.items(), key=lambda kv: (kv[1][1], -kv[1][0]))[:2]
print("practise next:", [name for name, _ in weakest])
weighted score: 3.33 / 5
practise next: ['used numbers to decide', 'discussed trade-offs']

Common mistakes

  • Jumping into a solution before agreeing on requirements.
  • Name-dropping technologies ("Kafka! Cassandra!") without saying why they fit these numbers.
  • Going deep too early on one component and leaving no time for the rest.
  • Silence. Think out loud; the interviewer can only grade what they hear.
  • Ignoring the interviewer's hints. A question like "what if this server dies?" is an invitation to discuss failure handling.
  • No trade-offs. Every choice has a cost; saying it out loud is what distinguishes a senior answer.

Tip: Practise with the case studies in this course: for each, set a 45-minute timer, follow the four steps on paper, then compare your design with the lesson.

Test yourself

What should you do first in a system design interview?

  1. Draw the database schema
  2. Clarify the requirements and scope
  3. Choose the programming language
  4. Estimate the number of servers

Why do back-of-the-envelope estimates matter in an interview?

  1. Interviewers check your arithmetic
  2. They justify design decisions such as caching, sharding or a single database
  3. They replace the high-level design
  4. They are only needed for storage

Which behaviour is a common mistake?

  1. Stating trade-offs explicitly
  2. Naming technologies without explaining why they fit
  3. Walking through the read and write flows
  4. Asking about the read/write ratio