Interview questions
System design interview questions, with a 45-minute framework
A system design interview is a conversation about trade-offs, not a quiz. In 45 minutes: agree on requirements, size the problem, sketch the API and data model, draw the high-level design, go deep on the hardest part, and name what you'd change. Think out loud the whole way.
For live interviews: the FlexQ interview copilot for Mac or Windows, 30 free live minutes.
Updated 2026-11-16 · a 45-minute framework · 12 common questions · mid-level to staff
Jump to: Framework · Estimates · 12 questions · Levels · Thinking aloud
The 45-minute framework
| Step | Rough time | What to cover |
|---|---|---|
| 1. Requirements | ~5 min | The features in scope, who uses it, and the non-functional needs: scale, latency, availability, consistency. Say what you are leaving out. |
| 2. Estimates | ~5 min | Requests per second, read/write ratio, storage over a few years. Round numbers; the point is the order of magnitude. |
| 3. API and data model | ~5 min | Three or four endpoints, the main entities and their keys, and which access patterns the storage must serve. |
| 4. High-level design | ~10 min | Clients, load balancer, services, databases, cache, queues. Walk one request through it end to end. |
| 5. Deep dive | ~15 min | The one or two parts that make this problem hard, usually where the interviewer steers you. Options, the choice, and why. |
| 6. Trade-offs and wrap-up | ~5 min | Bottlenecks, what fails first and what happens then, and what you would change at ten times the load. |
The minutes are a guide, not a rule: if the interviewer jumps to the deep dive early, follow them. What matters is that requirements come first. Designing before you know the scale is the most common way these interviews go wrong.
Back-of-the-envelope estimates
Interviewers want to see that you can turn a vague "lots of users" into numbers that decide the design. Use round figures and say your assumptions. A day has 86,400 seconds, about 105, and a month about 2.6 million. An illustrative example for a URL shortener, with made-up but plausible assumptions:
| Assumption or result | Rough number | How |
|---|---|---|
| New short links | 100 million a month (assumed) | Given or agreed with the interviewer |
| Writes per second | ~40 on average | 100,000,000 ÷ 2,600,000 seconds ≈ 38 |
| Reads per second | ~400 on average, more at peak | Assume 10 redirects for every new link: a 10:1 read-to-write ratio |
| Storage per year | ~600 GB | Assume ~500 bytes per record: 500 B × 100 M × 12 |
| IDs available | ~3.5 trillion | 7 characters in base 62: 627 ≈ 3.5 × 1012 |
Those numbers already tell you something: the system is read-heavy, the data fits on a few machines, and seven characters will not run out. That is the kind of conclusion the estimate step is for.
12 common system design interview questions
Each has what the interviewer is looking for and a short skeleton to build an answer on. The skeletons are starting points to adapt out loud, not designs to memorize.
1. Design a URL shortener like bit.ly
What they look for: How you generate unique short IDs, and how you serve a very read-heavy workload.
Answer skeleton: A write API that stores long URL → short ID, and a redirect endpoint. IDs from a counter or ID service encoded in base 62, or a hash with collision checks. A key-value store keyed by the short ID and a cache in front of it for popular links. Mention 301 vs 302: a permanent redirect can be cached by browsers, so you lose click counts.
2. Design a rate limiter for an API
What they look for: Knowing the algorithms and making the limit work across many servers.
Answer skeleton: Token bucket, fixed window or sliding window, and their trade-offs (bursts vs memory vs accuracy). Counters in a shared store such as Redis with atomic increments so every server sees the same count. Return HTTP 429 with a Retry-After header. Decide whether to fail open or closed when the counter store is down.
3. Design a social media news feed
What they look for: Fan-out choices and the celebrity problem.
Answer skeleton: Fan-out on write (push each post into followers' precomputed feeds) is fast to read but expensive for accounts with millions of followers; fan-out on read (merge at request time) is the opposite. A hybrid: push for most accounts, pull for the very large ones. Cursor-based pagination and a feed cache.
4. Design a chat app like WhatsApp or Slack
What they look for: Real-time delivery, ordering and offline users.
Answer skeleton: Persistent connections (WebSockets) to chat servers, a mapping of which user is connected where, and a message store per conversation. Order by a per-conversation sequence number, not client clocks. Store messages for offline users and deliver on reconnect; send a push notification. Delivery and read receipts are separate small messages.
5. Design a notification system
What they look for: Reliability across email, SMS and push without spamming users.
Answer skeleton: Producers put events on a queue; workers per channel send through each provider. Retries with backoff, an idempotency key so retries are deduplicated before calling the provider (delivery is still at-least-once, so a rare duplicate can happen), user preferences and quiet hours checked before sending, and per-user rate limits.
6. Design a web crawler
What they look for: Scale, politeness and avoiding duplicate work.
Answer skeleton: A URL frontier (queue) feeding many fetcher workers. Respect robots.txt and limit requests per host. Normalize URLs and hash page content to skip duplicates. Store pages and extracted links, and schedule recrawls based on how often a page changes.
7. Design search autocomplete (typeahead)
What they look for: Low latency on every keystroke and keeping suggestions fresh.
Answer skeleton: Precompute the top suggestions per prefix from query logs in an offline job, store them in a trie or a prefix-keyed store, and cache aggressively, including close to the user. Update the precomputed lists periodically instead of on every query, and debounce requests on the client.
8. Design a distributed key-value cache
What they look for: Partitioning, replication and what happens when a node fails.
Answer skeleton: Consistent hashing to spread keys so adding a node moves only a fraction of them, replication for availability, an eviction policy such as LRU, and TTLs. Discuss hot keys and the choice between consistency and availability during a network partition.
9. Design file storage and sync like Dropbox
What they look for: Large files, partial changes and conflicts.
Answer skeleton: Split files into chunks, identify chunks by content hash so unchanged chunks aren't uploaded again, and keep metadata (files, versions, chunk lists) separate from blob storage. Resumable uploads. A sync service notifies other devices; conflicting edits create a conflicted copy rather than silently overwriting.
10. Design ride-hailing matching like Uber
What they look for: Geospatial lookup and a fast stream of location updates.
Answer skeleton: Drivers send location every few seconds; keep current positions in memory, indexed by a geohash or quadtree cell so "drivers near this point" is a lookup of nearby cells. A matching service offers the ride to nearby drivers one at a time or in a small batch, and must make sure a driver can't accept two rides at once.
11. Design a video streaming service like YouTube
What they look for: The upload pipeline and delivery at scale.
Answer skeleton: Upload to object storage, then a queue of transcoding jobs that produce several resolutions and bitrates. Serve through a CDN with adaptive bitrate streaming (HLS or DASH), so the player switches quality as bandwidth changes. Metadata, search and view counts are separate services.
12. Design a ticket booking system
What they look for: No double booking under heavy concurrent demand.
Answer skeleton: Hold a seat for a few minutes while the user pays, with the hold stored so only one request can win (a conditional update or row lock on the seat). Release expired holds automatically. Make payment idempotent so a retried request doesn't charge twice, and put a queue in front of very popular events.
What changes from mid-level to staff
| Level | What the interviewer expects |
|---|---|
| Mid-level | A working design that meets the requirements, sensible components, and the ability to explain each one. Prompting is expected. |
| Senior | You drive the conversation: you set the requirements, spot the hard part yourself, compare two or three options with their costs, and handle failure cases without being asked. |
| Staff | Beyond the design: operating it, evolving it over time, cost, migration from what exists today, and how teams would own the pieces. You reason about which problems are worth solving now. |
Think aloud and narrate the trade-offs
Much of the score comes from your reasoning, and the interviewer can only score what you say. A silent minute of drawing loses points; a sentence of reasoning earns them. These lines help:
- "Before I design anything, can I check the scale we're aiming for?"
- "I'll assume reads outnumber writes about ten to one; tell me if that's wrong."
- "There are two ways to do this. The first is simpler; the second handles the celebrity case. I'll start with the first and come back."
- "I'm choosing X over Y because of Z. The cost is that…"
- "The first thing to break at ten times the load would be the database writes, so…"
This is a skill you can rehearse without a whiteboard: explain a system you have built, out loud, including what you would do differently. It is the part that is easiest to skip when you prepare alone.
Common mistakes
- Jumping to components. Naming Kafka in the first minute, before anyone knows the scale.
- Going quiet while you think. The interviewer can't follow, or help, a design they can't hear.
- Precise numbers. 38.46 writes per second is false precision. "About 40" is the right answer.
- One option only. Without an alternative, there is no trade-off to discuss.
- Ignoring failure. Say what happens when a node, a region or a dependency goes down.
Rehearse with the FlexQ mock, honestly
The FlexQ mock interviewer is a voice interview (you can also type) and has no system design round, whiteboard or diagrams. What it can do: in the Experience deep-dive round, paste a backend or infrastructure job description and your résumé, and the interviewer asks role-specific technical questions about your experience and follows up on your reasoning. That makes it good practice for explaining a design you built and defending its trade-offs out loud. There is also a separate Coding mode, with a live problem and a code editor, for coding questions. The report quotes your answers back, so you can see where your reasoning went thin.
Practice explaining a design out loud, free
Pick a system you've worked on, paste a matching job description, and talk it through by voice. Three mock interviews are free with an email sign-up, no card.
For live interviews: the FlexQ interview copilot for Mac or Windows, 30 free live minutes.
On the real call
FlexQ also has a live copilot for macOS and Windows. Add your résumé and the job description, and when a question lands it shows a short cue from your own experience, which you say in your own words. Your first 30 live minutes are free. Get FlexQ.
FAQ
How long is a system design interview?
Usually 45 minutes to an hour. The framework above is for 45 minutes; with longer, spend the extra time on the deep dive and on failure cases.
Do junior engineers get system design interviews?
Less often, and usually a lighter version, such as designing an API or a small service. They become standard from mid-level up and carry the most weight for senior and staff roles.
How precise do my estimates need to be?
Within an order of magnitude. Round aggressively, say your assumptions, and use the result to make a decision, such as whether the data fits on one machine.
What if the interviewer asks about a technology I haven't used?
Say so, then explain the principle you would rely on, for example "I haven't run Cassandra, but I'd want a store that partitions by user ID and tolerates a node failing." Reasoning counts more than product names.
How should I prepare for a system design interview?
Learn the framework, work through the common questions above, and practice each one out loud against a timer, as if someone were listening. Then explain a system you built yourself, including its weak points.
Related
Backend developer questions · Software engineer questions · Product manager questions · Practice out loud · If you blank on an answer · All roles