1. Home
  2. Guides
  3. System design answers

How to structure a system design answer.

Open-ended design questions punish rambling. A fixed order keeps you clear and gives the interviewer places to steer: requirements, components, data, scale, trade-offs.

Updated 27 November 2026 · 6 minute read

1. Requirements and scale

Spend the first few minutes asking. What must it do (functional requirements), and how well (latency, availability, consistency)? How many users, requests per second and how much data? Write the numbers down; every later decision refers to them.

2. High-level components

Draw the boxes: clients, an API layer, the services, the stores, caches and queues. Walk one request through them end to end. Keep it simple first; add complexity only when a requirement demands it.

3. Data model

What are the main entities and how are they accessed? The access pattern decides the store: relational for transactions and joins, key-value for simple lookups at scale, a log or stream for events. Name the keys you'd shard and index by.

4. Scaling

Go back to the numbers. Where does it break first? Add caching for hot reads, partitioning for big data sets, replication for read throughput and availability, and queues to absorb spikes. Say what you'd measure to know it's working.

5. Trade-offs

Close by naming what you gave up: consistency for availability, cost for latency, simplicity for flexibility. Interviewers listen for this more than for any particular technology.

Worked example: a rate limiter for a public API

  • Requirements: limit each API key to R requests a second with bursts up to B; add under 5 ms of latency; work across many API servers.
  • Components: a check in the API gateway before requests reach services, backed by a shared store.
  • Data model: one token bucket per key in Redis, holding the token count and the last refill time.
  • Algorithm: on each request, refill tokens for the time elapsed, take one atomically with a Lua script, and reject with 429 and a Retry-After header when the bucket is empty.
  • Scaling: shard keys across Redis nodes by hash; for very hot keys, keep local counters and flush asynchronously.
  • Trade-offs: a token bucket allows bursts and is cheap; a sliding-window log is more exact but costs memory per request; local counters trade a little accuracy for latency.

Peekaboo answers system design questions in this order during a live interview, and you can expand the overlay to read a long answer. More on technical interviews with Peekaboo.