Interview framework and the gaps found

Lesson 1.1 · 6 min read · by Vinay C

We'll cover the following

Visual summary

Infographic summarizing Interview framework and the gaps found: The interviewer says: "Design a chat app." That is all. No numbers, no list of features, no definition of done. A…

Download imageFree to share, please link back to this lesson.

The problem: a one-line question and 45 minutes

The interviewer says: "Design a chat app." That is all. No numbers, no list of features, no definition of done. A system design interview is a conversation where you turn a vague product idea into a sketch of servers, databases and data flow, and explain why each piece is there.

Nobody expects a perfect answer. They are watching how you think: do you ask before assuming, do you let numbers drive choices, and do you know where your own design will crack? Candidates who jump straight to drawing boxes usually draw the wrong boxes.

The 45-minute shape

Follow the same order every time. The minutes are rough guides, not rules.

0-7    Requirements and scope (functional + non-functional)
7-12   Estimation (QPS, storage, read:write ratio)
12-18  APIs and data model
18-28  High-level design (the boxes)
28-40  Deep dive on the 1-2 hard parts
40-45  Bottlenecks, failure modes, trade-offs

Notice that the boxes come at minute 18, not minute 1. By then you know what you are building and how big it is. Open with the APIs (HTTP method plus parameters) before drawing anything, then place the usual building blocks: client, DNS, API gateway, services, database.

Step 1: clarify requirements

Ask about volumes, geography, scale, security, and how strict consistency and accuracy must be. Then narrow the scope: who the users are, which devices, what environment. Requirements come in two kinds.

  • Functional is what users can do. These are verbs: send a message, upload media, see delivery status.
  • Non-functional is how well it must do it, ideally with a number or a guarantee: p99 under 500 ms (99 percent of requests faster than that), no loss after the ack, same order for everyone, 30-day retention, data residency.

Here is the chat app after two minutes of questions:

KindWhat we agreed
FunctionalSend a message, upload media, see delivery status.
Non-functionalp99 delivery under 500 ms. No message lost once acknowledged. Everyone in a chat sees the same order. Keep 30 days.

Say the guarantees (no loss, ordering, consistency) out loud. They are what drive the design. Also state your own assumptions with numbers, such as "I will assume 10 million daily users", instead of waiting for the interviewer to hand them over.

Step 2: let numbers drive the design

Turn volumes into QPS (queries per second), storage and bandwidth. A quick example with assumed figures: 10 million users sending 40 messages a day is 400 million messages a day. Divide by roughly 86,400 seconds and you get about 4,600 messages per second on average. That is a number you can reason about, and it is far smaller than many people fear.

This is why numbers matter: 5,000 writes per second and 5 million writes per second need different designs. The full method is in the Estimation lesson.

Step 3: after the boxes, say where it breaks

When the design is drawn, do not stop. Add one more habit: name the bottleneck at 10x the load, and say what you would do about it. For example: "At 10x, the single database taking all message writes becomes the limit. I would shard it by chat id." This shows you see the design as something that has to survive growth and failures, not a finished picture.

Common mistakes, as advice

  • Do the math. Skipping back-of-envelope numbers means your choices float free of the real load. Turn volumes into QPS, storage and bandwidth, and let them decide (see Estimation).
  • Always add a "where does this break" step. Finish with the 10x bottleneck and your fix.
  • Do not pick a database by a myth. "Relational for consistency, NoSQL for eventual" is wrong. Consistency is a setting on each query, not a type of database. See Choosing a database for how to choose properly.
  • Clarify before you draw. Ask, narrow the scope, list the APIs, then place the boxes.
Check yourselfThe interviewer says "design a URL shortener" and stops talking. What do you do in the first five minutes?

Do not draw yet. Ask clarifying questions and split the answers. Functional: create a short link, redirect to the original, maybe custom aliases. Non-functional: redirect latency, availability, how long links live, whether a link may ever be lost. Then state assumed numbers (links created per day, reads per write) so the estimation step has something to work from.

Summary: say it in the interview

  • Say "unless the numbers say otherwise" before picking exotic tech. Most "scale" problems are smaller than they sound.
  • "Let me confirm the requirements and put numbers on them first, and at the end I will tell you where this breaks at 10x."