Get Hired · Interviews

System design interviews

A repeatable framework for system design rounds, what interviewers expect at each level, a worked outline, and the mistakes that sink otherwise strong candidates.

In a system design interview you're asked to design something large and vague: a URL shortener, a chat app, a notification service, a rate limiter. There's no single right answer. The interviewer wants to see how you turn an open problem into a sensible design, how you reason about trade-offs, and whether you know where real systems break.

Most mid-level and senior software, platform and cloud roles include at least one design round. Junior roles sometimes have a lighter version focused on an API or a data model.

A framework you can reuse

A 45–60 minute round goes much better with a plan. This one works for almost any question:

Step Time What you do
1. Requirements 5–8 min Agree what the system must do and how well
2. Estimates 3–5 min Rough numbers for traffic, storage and bandwidth
3. API 3–5 min The main operations and their inputs and outputs
4. Data model 5 min Key entities, how they're stored, how they're accessed
5. High-level design 10 min Components and how a request flows through them
6. Deep dives 10–15 min The hardest parts, in detail
7. Trade-offs and wrap-up 5 min Bottlenecks, failure modes, what you'd do next

Say the plan at the start: "I'll start with requirements and some estimates, sketch the API and data model, then a high-level design, and then we can go deep wherever you'd like." Interviewers appreciate the structure and often steer you towards the part they care about.

1. Requirements

Split them into two kinds:

  • Functional: what users can do. "Users can shorten a URL, and visiting the short URL redirects to the original. Custom aliases are optional. Links can expire."
  • Non-functional: how well it must work. Scale, latency, availability, consistency, durability, cost, security and compliance.

Ask, don't assume: "How many new links per day? Is it read-heavy? Do redirects need to be under 100 ms worldwide?" Write the answers down where the interviewer can see them, and refer back to them later.

2. Estimates

Keep the arithmetic rough and quick. The point is to find out whether you need one database or fifty, not to get exact numbers.

100 million new links a month  ≈ 40 writes per second on average
Reads are 100x writes           ≈ 4,000 reads per second, peaks maybe 10x
Each record about 500 bytes    ≈ 50 GB a month, about 3 TB over five years

Then say what the numbers mean: "Reads dominate, so caching matters most. The data fits on a few machines, but we'll want replication for availability."

3. API

Define the main calls:

POST /links          { url, alias?, expiresAt? }  -> { shortCode }
GET  /{shortCode}    -> 301/302 redirect

Mention authentication, rate limits and idempotency where they matter.

4. Data model

Name the main entities, the fields you query by, and the kind of storage. For the shortener: a links table keyed by short code, with the original URL, owner, creation time and expiry. A key-value store or a relational database both work at this scale; explain your choice by the access pattern ("lookups are always by short code").

5. High-level design

Draw the request path: clients, load balancer, stateless application servers, cache, database, any queues or background workers, and a CDN if it helps. Walk one request through it end to end. Keep it simple at first; add components only when a requirement needs them.

6. Deep dives

Pick the parts that are genuinely hard, or let the interviewer choose. Typical deep dives:

  • generating unique short codes without collisions (counters, ranges per server, hashing with retries),
  • caching strategy and invalidation,
  • partitioning (sharding) and choosing a partition key,
  • replication, failover and what happens when a region goes down,
  • consistency: where eventual consistency is acceptable and where it isn't,
  • hot keys and traffic spikes,
  • queues for slow work, retries and idempotency,
  • observability: metrics, logs, traces and alerts.

7. Trade-offs and wrap-up

Finish by naming the weakest points of your design and what you'd change at ten times the scale. "The single write region is a bottleneck for global writes; next I'd look at regional write paths with a global ID scheme." Naming your own design's limits is a strong signal.

What interviewers expect at each level

Level Expected
Junior / graduate A sensible API and data model; a basic client–server design; awareness of caching and databases
Mid-level A complete high-level design driven by requirements; reasonable choices of storage and caching; can go deep on one or two areas
Senior Leads the conversation; uses estimates to make decisions; covers reliability, failure modes, consistency and operations; clear trade-offs
Staff and above Frames the problem, questions requirements, considers organisational and cost constraints, evolution over time and migration paths

Interviewers for platform, SRE and cloud roles usually push harder on operations: deployment, monitoring, capacity planning, multi-region failover and incident handling.

Common mistakes

  • Jumping to technologies. "I'd use Kafka and Cassandra" before agreeing what the system needs. Start from requirements; pick tools to meet them.
  • Over-engineering. Microservices, three databases and a service mesh for 40 requests a second. Match the design to the numbers.
  • Going silent while drawing. Explain each box as you add it.
  • Ignoring failure. Every component can fail. Say what happens when the cache, a database replica or a whole zone goes away.
  • Never finishing. Spending 30 minutes on requirements leaves no time for design. Keep an eye on the clock.
  • Treating it as a test, not a conversation. If the interviewer asks "what if traffic doubles?", they're steering you. Follow.

How to practise

  • Learn a toolbox of building blocks: load balancers, caches, relational and NoSQL databases, object storage, queues and streams, CDNs, search indexes, and when each fits.
  • Practise the framework on ten classic problems until it's automatic: URL shortener, rate limiter, chat, news feed, notification service, file storage, search autocomplete, ride matching, video streaming, payments.
  • Do some designs out loud with a timer and someone asking "why?".
  • Read engineering blogs and post-incident reviews from large companies: they show how real systems fail.

Practise

General guidance, not legal or immigration advice. Laws and rules change: check the official sources linked in each country note.

Was this page helpful?

Report a mistake