System design interview guide: a step-by-step framework

A repeatable framework for system design interviews, from requirements and estimates to data models and tradeoffs, with a worked URL shortener example.

7 min read Interviews editorial team

  • system design
  • technical interview
  • senior
On this page
  1. What interviewers evaluate
  2. The framework in six steps
  3. Building blocks you should be able to explain
  4. Common system design questions to practice
  5. Mistakes that cost candidates
  6. How system design changes by level
  7. FAQ
  8. Practice before the real round

A system design interview is a 45 to 60 minute conversation about building something large and vague, such as "design a chat app" or "design a URL shortener." There is no single correct answer. The interviewer wants to see how you turn an unclear request into a working design and how you reason about the tradeoffs along the way.

The candidates who do well are rarely the ones who know the most technologies. They are the ones who follow a clear process and keep the interviewer involved. This guide gives you that process.

What interviewers evaluate

  • Requirements gathering: do you clarify before you draw?
  • Structure: can you move from a high-level view to details in a logical order?
  • Technical judgment: do your choices fit the scale and constraints you agreed on?
  • Tradeoffs: can you explain what you gain and lose with each decision?
  • Communication: does the interviewer understand your design as you build it?

The framework in six steps

Step 1: Clarify requirements (5 to 8 minutes)

Split requirements into two lists.

Functional: what the system does. For a URL shortener: create a short link, redirect to the long URL, maybe custom aliases and expiry, maybe click analytics.

Non-functional: how well it must do it. Latency targets, availability, consistency needs, data retention, and expected traffic.

Ask which features matter most and which you can leave out. Writing a short scope list on the board protects you from designing too much.

Step 2: Estimate scale (3 to 5 minutes)

Rough numbers guide every later decision. Ask the interviewer for traffic numbers or propose reasonable assumptions and confirm them.

For a URL shortener you might assume 100 million new links a month and a read to write ratio of 100 to 1. That gives roughly 40 writes per second and 4,000 reads per second on average, with peaks several times higher. If each record is about 500 bytes, five years of links is around 3 terabytes. These numbers tell you that reads dominate, caching will matter, and storage fits on a modest cluster.

Keep the math simple and say it out loud. Precision does not matter. Order of magnitude does.

Step 3: Define the API (3 to 5 minutes)

List the main endpoints or operations:

  • POST /links with the long URL, optional alias, and expiry. Returns the short code.
  • GET /{code} returns a redirect.
  • GET /links/{code}/stats for analytics, if in scope.

An API forces you to think about inputs, outputs, and errors before you think about servers.

Step 4: Sketch the high-level design (10 minutes)

Draw the main components and the path of a request:

  • Clients
  • A load balancer
  • Stateless application servers
  • A database for link records
  • A cache in front of the database for hot links
  • Optionally, a queue and a separate store for click events

Walk through one write and one read from start to finish. Then ask the interviewer which part they want to explore deeper. This keeps the conversation shared rather than a monologue.

Step 5: Deep dive into the hard parts (15 to 20 minutes)

Every design has two or three interesting problems. For a URL shortener they are:

Generating short codes. Options include hashing the URL and taking a prefix, a random string with a collision check, or a counter encoded in base 62. A counter is simple and collision free but needs coordination across servers; you can hand out ranges of IDs to each server to avoid a bottleneck. Hashing is stateless but needs collision handling.

Storage choice. The access pattern is a key lookup by short code, with very high read volume. A key value store or a relational database with an index on the code both work. Explain why you choose one: familiarity of the team, consistency needs, and operational cost.

Caching. Popular links get most of the traffic. A cache with a least recently used eviction policy in front of the database absorbs most reads. Discuss cache invalidation when a link is deleted or expires.

Analytics. Writing a click event synchronously on every redirect slows the critical path. Publishing events to a queue and processing them asynchronously keeps redirects fast.

Step 6: Address bottlenecks and wrap up (5 minutes)

Close by reviewing risks:

  • Single points of failure and how replication removes them.
  • What happens when the cache fails.
  • Hot keys and how to spread load.
  • Monitoring: which metrics and alerts you would add.
  • What you would build next with more time.

A short summary of the design and its main tradeoffs is a strong finish.

Building blocks you should be able to explain

You do not need deep expertise in all of these, but you should know what each one does and when to use it:

  • Load balancers and the difference between layer 4 and layer 7 balancing.
  • Caching at the client, CDN, application, and database levels.
  • Databases: relational versus document versus key value versus wide column, indexing, replication, and sharding.
  • Message queues and streams for decoupling and smoothing traffic spikes.
  • Consistency models: strong versus eventual consistency and where each is acceptable.
  • Rate limiting algorithms such as token bucket.
  • Idempotency for retries in payments and other critical paths.
  • Observability: logs, metrics, traces, and alerting.

Common system design questions to practice

  • URL shortener
  • Chat or messaging system
  • News feed or timeline
  • Rate limiter
  • File storage and sharing service
  • Notification system
  • Ride matching or delivery dispatch
  • Search autocomplete
  • Payment processing flow
  • Metrics or logging pipeline

Practice at least four of these end to end, out loud, with a timer. Recording yourself is uncomfortable but shows quickly where you ramble or skip steps.

Mistakes that cost candidates

  • Jumping to technology names. "I would use Kafka and Cassandra" before you know the requirements sounds like guessing.
  • Designing for unlimited scale. A system for 1,000 users a day does not need sharding. Match the design to the numbers you agreed on.
  • Ignoring the interviewer. If they give hints, follow them. They are often steering you toward the part they want to evaluate.
  • No tradeoffs. Every choice has a cost. Say it.
  • Running out of time on one detail. Watch the clock and keep moving through the framework.

How system design changes by level

For mid-level roles, a clean high-level design with sensible components and a solid explanation of one deep dive is usually enough.

For senior and staff roles, interviewers expect you to drive the conversation, find the hard problems yourself, discuss operational concerns such as deploys and on-call, and weigh cost. If you are targeting architecture roles or senior positions, practice explaining why you would not choose an option, not only why you would.

FAQ

How do I prepare for system design with no large-scale experience?

Read about how real systems are built, practice the common questions with the framework above, and reason from first principles. Interviewers value clear reasoning over claims of having run huge systems.

Should I draw diagrams in a remote interview?

Yes. Use the whiteboard tool the company provides or a simple diagram tool you have practiced with. Boxes and arrows with clear labels are enough.

How deep should my estimates go?

Deep enough to make decisions. Requests per second, storage over a few years, and read to write ratio are usually sufficient.

What resources help with system design practice?

Free GitHub resources such as the system design primer are a good start. Our article on GitHub repositories for full stack interview prep lists several design resources with notes on how to use them.

Practice before the real round

Interviews builds a prep plan from the role you are interviewing for, including architecture topics for the stack in the posting. Create a free profile, or browse backend jobs and system engineering jobs where design rounds are common.