How a system design interview runs
After this: Plan 45 minutes stage by stage, ask the first questions, and answer the common follow-ups.
On this page · 7 sections · 3 checks
You have now designed two services, a URL shortener and a news feed, each over several lessons. In a system design interview you get one open question, a whiteboard or a shared document, and often about 45 minutes with one interviewer. How do you fit a design like this one into that time?
The timeline
A common plan has six stages. Each one has a share of the time, and the feed you built in this tutorial fills every row.
| Minutes | Stage | What you do | For the feed |
|---|---|---|---|
| 0–5 | Requirements | Ask questions; agree on what it does, how big, and what is left out | post, follow, feed newest first; 10 million people a day; no ranking |
| 5–10 | Estimates | Turn the numbers into requests per second and storage | 57.9 posts and 1,157 loads per second; 20 loads per post |
| 10–15 | API | Name the main requests and what they return | create a post; follow an account; get my feed |
| 15–25 | High-level diagram | Draw the parts and the path of each request | app servers, posts database, queue, workers, feed cache |
| 25–40 | Deep dive | Go deep on the hardest part, with numbers | push or pull, the celebrity problem, the hybrid |
| 40–45 | Bottlenecks and wrap-up | Say what breaks first and what you would do next | the feed cache's memory, a burst of posts on the queue |
The gets the most time, 15 minutes: it is where you show how you think about a hard problem. The interviewer often chooses its topic; if they do not, pick the part where the numbers forced a choice.
The questions to ask first
Before drawing, ask. Each answer changes the design.
- What must it do? Post, follow, read a feed? Photos and videos, or text only?
- How many people, and how often? Daily users, posts and feed loads per person.
- How fresh? May a post arrive a few seconds late?
- In what order? Newest first, or ranked by interest?
- How large are the largest accounts? The answer decides whether you need the hybrid from lesson 4.
If the interviewer says "you decide", choose a sensible answer, say it out loud, and write it down.
What the interviewer listens for
Interviewers differ, but most listen for these three things.
- Questions before drawing. A diagram drawn first answers a problem nobody agreed on.
- Numbers. "1,157 loads a second, 20 per post" is a reason; "it is big" is not.
- Trade-offs said out loud. "Push makes reads cheap and celebrity posts expensive, so I mix them" shows that you saw both sides.
Common follow-ups
| The interviewer asks | A good answer |
|---|---|
| A celebrity posts. What happens? | 50 million inserts, about 72 minutes; pull accounts above a follower limit and merge at read time |
| A worker crashes halfway through a fan-out. | The job was not acknowledged, so the queue gives it out again; the insert is written so that adding a post id already in a feed changes nothing |
| What breaks first? | The feed cache's memory as people join, and the queue in a burst of posts; add cache servers and workers |
| Someone follows a new account. | Pull that account's recent posts once and merge them into the ready feed |
| A post is deleted. | Delete it from the posts database; when a feed is shown, ids of deleted posts are skipped |
Common mistakes
- Drawing boxes before asking a single question.
- Naming products ("use a well-known database") without a reason from the numbers.
- Going deep on one part in minute five, and never drawing the whole design.
- Thinking in silence. The interviewer can only judge what you say.
Check yourself
The interviewer says: "Design a news feed." What do you do first?
In the 45-minute plan from this lesson, which stage gets the most time?
Your design uses fan-out on write. The interviewer asks: what if a worker crashes halfway through copying a post into feeds?
Honesty notes
- Plan a 45-minute system design interview: requirements 5, estimates 5, API 5, diagram 10, deep dive 15, wrap-up 5.
- Ask the first questions before drawing: features, how many people, how fresh, ranked or in time order.
- Answer the common follow-ups for a feed: a celebrity posts, a worker crashes, what breaks first.
- Say what the interviewer listens for: questions first, numbers, and trade-offs said out loud.