Load/Bearing
High-level design · 17 of 22

Running a design interview

A system design round is graded on how you get to an answer. Here's a sequence and a clock that keep you in control.

3 min read

Interviewers rarely have one right design in mind. They're watching whether you clarify the problem, put numbers on it, make reasonable choices, and explain the trade-offs. A fixed sequence keeps you from drawing boxes too early or running out of time in a deep dive.

The 45-minute clock

MinutesStepWhat you produce
0–5Requirements3–5 functional requirements, the non-functional ones (latency, availability, consistency), and what's out of scope
5–10EstimatesUsers, read and write QPS, storage, bandwidth. See estimation
10–15API and data modelThe main endpoints, and the key tables or collections with their keys
15–25High-level designOne diagram covering the whole read path and write path
25–40Deep divesTwo or three hard parts: scaling the bottleneck, consistency, failure handling
40–45Wrap-upTrade-offs, bottlenecks left, what you'd build next

Each step, in practice

Requirements

Ask, then write down what you agreed. "Do we need custom aliases? Analytics? How long do links live?" Then say which requirement dominates: "Redirects must be fast and almost never fail; creation can be slower."

Estimates

Round aggressively and say so. The aim is to learn which component is stressed. Finish with a conclusion: "So reads are 100 times writes, and the database can't serve 12,000 lookups a second alone. That means a cache."

API and data model

Two or three endpoints with their inputs and outputs, and the main entities with their primary keys. Choose the database here and say why (see SQL vs NoSQL).

High-level design

Draw the simplest design that meets the requirements, then walk one request through it end to end, once for a read and once for a write. Don't add Kafka, sharding or microservices until the numbers ask for them.

Deep dives

Pick the parts that are actually hard for this problem: key generation for a shortener, fan-out for a feed, connection state for chat. Interviewers often steer here, so follow their lead. For each part, give two options, choose one, and say what it costs.

Wrap-up

Name the next bottleneck and the failure you'd worry about most. That shows you know the design isn't finished.

Saying trade-offs well

"I chose X over Y because Z. It costs us W. I'd revisit it if V changes."

Example: "I chose fan-out on write for most users because feed reads outnumber posts ten to one. It costs us heavy write amplification for big accounts, so I pull those at read time. I'd revisit the threshold if the celebrity share of reads grows."

Your own project as a design answer

A system you built and can draw from memory is your strongest answer. Prepare it at two lengths:

Rehearse both aloud, timed, at least twice. Recording yourself once is uncomfortable and very effective.

Common ways to lose points

Interview checklist

Practise it

Model it in the sandbox

Set the traffic from your estimate, then build the read and write paths and see which component turns red first.

Open the sandbox

Further reading