This is the page to read in the hour before a system design interview. It holds the numbers interviewers expect you to know, the building blocks with one plain line each and when to reach for them, the scaling moves in the order you make them, the trade-off sentences to say out loud, and a checklist for the last five minutes before the call.
Everything here is short on purpose. For the 45-minute script, use the system design interview framework. For twenty questions with answer outlines, use the question list. This page is the reference you keep open next to them.
The latency numbers to know
These are the “numbers every programmer should know” that Jeff Dean of Google made famous. The classic figures date from about 2012 (Jeff Dean’s table):
- L1 cache reference: 0.5 ns (a nanosecond is a billionth of a second).
- Main memory reference: 100 ns.
- Compress 1 KB: 3 µs (a microsecond is a millionth of a second).
- Send 1 KB over a 1 Gbit/s network: 10 µs.
- Read 1 MB from memory: 250 µs.
- Round trip inside one datacenter: 500 µs.
- Disk seek (moving the read head on a spinning disk): 10 ms.
- Read 1 MB from disk: 20 ms.
- Round trip from California to the Netherlands and back: 150 ms.
The storage figures have changed since then. Colin Scott’s updated table gives an SSD random read at about 16 µs, reading 1 MB from an SSD at about 49 µs, and a disk seek at about 3 ms (Colin Scott’s interactive table). Network round trips did not change, because light did not get faster.
The three ratios to carry in your head:
- Memory is more than 100 times faster than an SSD read and tens of thousands of times faster than a disk seek. That is why caches work.
- A round trip inside a datacenter costs about as much as reading 2 MB from memory. That is why a chatty design (many small calls) is slow even when every call is fast.
- A round trip across an ocean is 300 times a round trip inside a datacenter. That is why global systems keep data near the user and why a global counter checked on every request is a mistake.
The throughput numbers that pick a component
Throughput is how much work a part can do per second. These figures come from published benchmarks, so you can quote them with a source:
- PostgreSQL: about 4,700 to 6,200 transactions a second on 4 virtual CPUs with mixed reads and writes, and 16,900 to 25,400 on 16 (ClickHouse benchmark, 2025); about 70,000 on a large bare-metal server (EDB).
- MySQL 8.0: over 1 million simple point-select queries a second on a 48-core box (Oracle). Simple reads with an index are cheap; the mixed workload above is the realistic number.
- Redis: about 180,000 SET operations a second on one instance without pipelining, about 1.5 million with it; a 4 KB value at 100,000 requests a second needs 3.2 Gbit/s, so the network limits first (Redis benchmarks).
- Kafka: about 200 MB/s per broker with a p99 latency (the time the slowest 1% of requests take) of 5 ms (Confluent, 2020).
- A web server: over a million tiny requests a second in benchmarks (TechEmpower). The 1,000 to 10,000 requests a second per application server that interview guides use is a convention for real code with real work, not a measurement.
- Object storage cost: S3 Standard is $0.023 per GB per month in US East (AWS); Cloudflare R2 is $0.015 with no egress charge (Cloudflare); Backblaze B2 is about $0.007 (Backblaze).
How to use these: one PostgreSQL server covers a few thousand mixed transactions a second. Below that, do not shard. Above about 100,000 reads a second, a cache in front of it is no longer optional. For the arithmetic that gets you from users to requests a second, see back-of-the-envelope estimation.
The building blocks, one line each
Each block below has what it is, in plain words, and when to reach for it. The decision flow puts the most common ones in one picture.
Traffic in:
- Load balancer: spreads incoming requests across several servers and routes around a dead one (AWS). Reach for it the moment you have two application servers.
- CDN (content delivery network): copies of your static files on servers near users, so a user in Sydney does not fetch an image from Virginia (AWS). Reach for it for images, video, scripts, and anything that is the same for everyone.
- Reverse proxy: a server that sits in front of your application servers and forwards requests to them, often also doing TLS and caching (NGINX). Usually the same box as the load balancer in an interview.
- API gateway: one front door for all your APIs that handles authentication, rate limiting and routing, so each service does not repeat that work (AWS). Reach for it when you have more than a couple of services or any public API.
- Rate limiting algorithms: token bucket (a caller gets tokens that refill at a fixed rate; each request spends one) allows short bursts (Wikipedia); fixed window counts requests per minute and lets a burst straddle the boundary; sliding window smooths that out, and Cloudflare’s approximation of it misclassified 0.003% of 400 million requests (Cloudflare, 2017). The full set is in design a rate limiter.
Reads:
- Cache: a copy of hot data in memory. Cache-aside means the application reads the cache, and on a miss reads the database and fills the cache; write-through means every write goes to the cache and the database together (AWS ElastiCache strategies). Reach for cache-aside for read-heavy data that may be a little stale; write-through when stale reads are not acceptable. Always say the TTL (time to live, how long an entry stays valid) and what happens on a miss.
- Indexes: a sorted lookup structure on a column so the database finds rows without scanning the table (PostgreSQL). Reach for one on every column you filter or join by; say that each index slows writes a little.
- Replication: copies of the database that receive every write from the primary and serve reads (PostgreSQL). Reach for read replicas when reads outgrow one server; say that a replica can lag the primary by a moment.
- Bloom filter: a tiny structure that answers “definitely not there” or “probably there” (Wikipedia). Reach for it to skip a lookup that would usually miss, such as “have we crawled this URL” or “is this username taken”.
- Geohash: a string that names a map cell; longer strings mean smaller cells, and a 6-character geohash is accurate to about 0.61 km (Wikipedia). Reach for it for “things near me” queries, with the cell prefix as the index key.
Writes and data:
- Sharding: splitting one big table across several databases by a key, such as user id (MongoDB). Reach for it only when writes or data size outgrow one primary; say which key and why, and name the hot-shard risk.
- Consistent hashing: a way of assigning keys to servers so that adding or removing one server moves only a small share of keys (Wikipedia). Reach for it whenever you shard a cache or a stateful service.
- Object storage: a service that stores files by name and serves them over HTTP, like S3 (AWS). Reach for it for anything larger than a database row: photos, video, backups, logs. Never store files in the database.
- Idempotency keys: a unique id the client sends with a request so that a retry of the same request does nothing the second time (Stripe; the header is an IETF draft). Reach for them on any request that creates something or moves money.
- Change data capture (CDC): reading the database’s own change log and publishing each insert, update and delete as an event (Debezium). Reach for it to keep a cache, a search index or another service in sync without dual writes.
- Outbox: writing the event to an “outbox” table in the same transaction as the data change, with a separate process that publishes it (microservices.io). Reach for it when a write and a message must both happen or neither.
- Saga: a long operation across several services done as a chain of local transactions, each with a compensating step to undo it (microservices.io). Reach for it for “book the flight, then the hotel, then charge the card” when one database transaction cannot cover all three.
- Distributed locks: a lock held in a shared store such as Redis so only one worker acts on a resource at a time (Redis). Reach for them rarely, with a timeout, and say that a lock with a timeout can expire while the holder is still working (Kleppmann, 2016); prefer an atomic database update when one exists.
Asynchronous work:
- Message queue: a buffer that holds work until a worker is free; each message is handled by one worker and then removed. Reach for it for anything the user does not wait for: emails, thumbnails, fan-out, retries.
- Stream: an ordered, replayable log of events that many readers can consume at their own pace, such as Kafka, which keeps order per partition and keeps the log for a retention period (Kafka introduction). Reach for a stream when several systems need the same events, or when you need to replay history. Queue versus stream in one line: a queue is a to-do list, a stream is a diary.
- Pub/sub: publishers send messages to a topic and every subscriber gets a copy (Google). Reach for it when one event has many independent consumers.
Real-time delivery to clients:
- WebSockets: one connection that stays open so client and server can both send at any time (MDN). Reach for them for chat, games, collaborative editing, anything two-way.
- Server-sent events (SSE): one open HTTP response the server keeps writing to (MDN). Reach for them for one-way updates: live scores, notifications, streaming an AI model’s answer word by word.
- Long polling: the client asks, the server holds the request until there is news, then the client asks again (RFC 6202). Reach for it when WebSockets are not available; say that it costs a request per update. Uber found plain polling was 80% of its gateway traffic before it moved to push (Uber, 2020).
Resilience:
- Circuit breaker: when a downstream service keeps failing, stop calling it for a while and fail fast, then try again later (Fowler, 2014). Reach for it on every call to a third party.
- Backoff with jitter: retry after a delay that doubles each time, plus a random offset so a thousand clients do not retry in the same second (AWS). Reach for it on every retry; say “with jitter” out loud.
- Leader election: a way for a group of servers to agree on one leader, usually through a coordination service or the Raft protocol (Raft; ZooKeeper recipes). Reach for it when exactly one process must do a job, such as a scheduler.
Where each block sits
A generic read-heavy web app, with every block from the list in its place. Most interview questions are a variation of this picture with one part made much harder.
Walk one read and one write through it when you draw it: a read goes CDN or load balancer, gateway, app server, cache, then a replica on a miss; a write goes gateway, app server, primary, then a queue for whatever can wait.
The scaling moves, in order
Make these in this order, and say why you are making each one. Jumping to the last step first is the over-engineering that Hello Interview reports as the usual cause of down-levelling (hired one level below the level applied for) (Hello Interview, January 2025).
- One server, one database. Correct for most of the systems ever built. Say it, then say what number would make you leave it.
- Split the application from the database, add indexes. Free wins. Most “slow database” problems are a missing index.
- Load balancer and stateless application servers. Stateless means no server remembers anything between requests, so you can add or remove servers freely. Session data goes to Redis or a cookie.
- Cache the hot reads, CDN for the files. Only after you can say what the hit rate will be and what a miss costs. In a 2025 thread an interviewer says many candidates’ only answer to any bottleneck is “add a cache” (Hacker News, March 2025); another says watching candidates learn that caching cannot fix everything is a highlight of the job (Hacker News, August 2025).
- Read replicas, and a queue for anything slow. Replicas for read volume, a queue so the request path only does what the user is waiting for. One interviewer calls missing queue and worker patterns the biggest gap in candidates’ answers (Hacker News, January 2026).
- Shard the writes, object storage for the files. Last, because sharding costs you cross-shard queries and transactions. Say the shard key.
Trade-off phrases to say out loud
Interviewers grade the trade-off more than the drawing. At Rippling, naming caching without its patterns or costs was enough to fail a senior round (Blind, September 2025). At staff level, the biggest mistake is listing options and refusing to pick one (Hello Interview). Each line below is a choice, its cost, and a reason:
- “I am choosing availability over consistency here, because a stale like count is fine and a feed that will not load is not.” (The CAP theorem says that during a network split you keep one or the other, not both: Brewer, 2012. PACELC adds that even with no split you trade latency against consistency: Abadi, 2012.)
- “This cache can serve data up to 60 seconds old. I accept that for the product page and not for the checkout total.”
- “Fan-out on write makes reads instant and writes expensive. I will do it for normal users and skip it for accounts with millions of followers.”
- “At-least-once delivery means a rare duplicate. I will dedupe on the consumer with the message id, because losing a message is worse.”
- “A single primary limits writes to a few thousand a second. We are at 200, so I will not shard yet, and here is the number that would make me.”
- “SQL gives me transactions and joins; the document store gives me easier scaling of this one wide table. I am picking SQL because the data is relational and the scale is modest.”
- “Strong consistency on the ledger, eventual consistency on the dashboard. Money and reports have different rules.”
- “A retry with backoff and jitter handles a slow provider; a circuit breaker handles a dead one. I need both.”
- “I am leaving out X. It is in scope for the real product and out of scope for 45 minutes, and here is where it would plug in.”
The last one matters more than it looks. Saying what you cut, and where it would go, is the difference between “too high level” and “well scoped” in the feedback.
The five-step clock
The script for the 45 minutes, from the framework post, which has what to say at each step and a diagram at each checkpoint:
- 0 to 5 minutes: requirements and scope. Functional, non-functional (how well it must run: speed, reliability, consistency), and scale. Write the scope on the board.
- 5 to 8 minutes: the one number that matters. Calculate only the number that picks a component.
- 8 to 20 minutes: the simplest high-level design that meets the scope, then walk one request through it out loud.
- 20 to 38 minutes: two deep dives where the design breaks. Pick them yourself and say why.
- 38 to 45 minutes: trade-offs, what you cut, what you would do next, one question for the interviewer.
The checkpoint rule from an interviewer who says they have run about a thousand rounds: the basic design is done by the midpoint, after about 40% of the time (Blind AMA, June 2024).
Pre-round checklist
Five minutes before the call:
- Whiteboard tool open and tested. Excalidraw is common for remote rounds (Excalidraw); Google Jamboard was shut down at the end of 2024 (Google), so do not plan on it. If the company sends its own tool, use its drawing mode and practise in it once.
- Timer visible. The round is 45 minutes at Meta and Google (Hello Interview Meta guide; Google guide), 55-minute slots with leadership questions at Amazon (amazon.jobs), 60 minutes at Netflix (Blind, July 2025).
- The three numbers you will need written on a sticky note: seconds in a day (86,400, call it 100,000), the throughput of one database server, the latency of one cross-region round trip.
- Your two clarifying questions ready for the most likely prompt, and your “I will assume X, tell me if that is wrong” line.
- Your opening sentence: “Let me spend five minutes on requirements, then draw the simplest thing that works, then go deep where it breaks.”
- The reminder to drive. Letting the interviewer lead made one candidate “seem unsure, unstructured, and junior” across ten failed rounds (Hemant Pandey, June 2025). When you finish a part, name the next one and ask whether to go there.
- No AI tools open unless the employer has said they are allowed. Most do not allow them in this round, and interviewers say they watch for it (Calvin Barker, December 2025). The rules by company are in can you use AI in a system design interview.
During the round, the four checks from the framework: did I write the scope, did I say the one number, can I walk one request through the whole drawing, and did I name a trade-off for every box I added.
If a past round went wrong and you have the feedback, why candidates fail system design interviews decodes the usual phrases. If you are early in your career, system design for junior engineers says which parts of this page apply to you.
How InterviewStorm helps
InterviewStorm turns this cheat sheet into a practice partner. Run any design question in a mock call and it gives back the requirements to clarify, the number that matters, an architecture diagram it draws itself, the request flow, the schema and APIs, the scaling moves in order and the trade-offs to name, so you can check which blocks you reached for and which you forgot. See the system design feature.
Most employers do not allow AI help during the design round, and interviewers watch for it. Use it live only where the employer allows AI help, and to practise everywhere else. Follow each employer’s interview rules. Do not use InterviewStorm in proctored tests, exams, or anywhere AI help is not allowed.
The free trial is 20 minutes in total, up to 15 minutes per session, with no credit card. Try it free.
For the rest of the loop, read the guides on coding interviews and the STAR method.
Share Articles:
Similar Posts