Sub topic 13
Communicate and iterate
A design that only you understand is not finished. This chapter covers how to explain a system design clearly and how to revise it when requirements change. It assumes you have worked through the earlier chapters: you can state requirements, estimate capacity, sketch an API, draw a high-level architecture, and name trade-offs. Here you turn that work into a conversation.
Why communication is part of the design
A system design problem is open-ended. The person reviewing your work (an interviewer, a teammate, a tech lead) cannot read your mind. They see only what you say and draw. If your reasoning is hidden, they cannot tell a deliberate choice from a guess, and they cannot help you fix a mistake.
Communication does three jobs:
- It exposes your assumptions so others can correct them early, when changes are cheap.
- It shows the reasoning behind each decision, so the design can be defended and later revisited.
- It keeps both sides working on the same problem instead of two different ones.
Iteration is the other half. Requirements change, numbers turn out to be wrong, and the first sketch usually has a weak spot. A good designer treats the first version as a draft and revises it in the open.
Structure your explanation
Give the listener a map before you give them details. A reliable order follows the process in this tutorial:
- Restate the problem and the requirements you settled on.
- State your assumptions and the key numbers from the estimate.
- Show the API and the main data entities.
- Present the high-level architecture, one request path at a time.
- Go deeper on the riskiest component.
- Close by checking the design against the requirements and naming open risks.
Say where you are going before you go there. A sentence such as "I'll walk through the write path first, then the read path, then pick one part to deepen" lets the listener follow and interrupt at the right moments.
Walk a request through the diagram
Do not read boxes off a diagram in the order you drew them. Follow one request from the client to the data store and back. This turns a static picture into a story and exposes missing pieces, such as a request that has no path back.
While tracing, narrate what each hop does and why it exists. "The cache is invalidated on write so a later read does not return stale data" is a better sentence than "then there is a cache."
Make reasoning visible
Every significant choice should come with a reason and a cost. A simple template works well:
- Decision: what you chose.
- Because: the requirement or number that drives it.
- Cost: what you give up.
- Revisit if: the condition that would change your mind.
For example: "I'll use a relational database, because the access pattern is lookups by ID and by owner, and the estimate of about 579 average writes per second is well within one primary. The cost is that a single primary limits write growth. I'd revisit this if sustained writes grew by an order of magnitude."
The "revisit if" line is what makes iteration easy later. You have already named the trigger.
Use numbers, not adjectives
Words like "fast," "large," and "scalable" carry no information. Replace them with figures from your estimate.
| Vague statement | Specific statement |
|---|---|
| "The database will be busy." | "Average reads are about 11,600 per second, roughly 23,000 at a 2x peak." |
| "We need a lot of storage." | "About 25 GB of new data per day, roughly 9 TB per year, before replication." |
| "Reads are slow." | "Target p99 read latency is 100 ms; a cache hit should take a few milliseconds." |
When you do not know a number, say so and give a labeled guess. "I'm assuming 500-byte records. If they're closer to 5 KB, storage grows tenfold and I'd revise the storage plan."
Check in without stalling
Pause at natural boundaries and ask a short, specific question. Good check-ins are tied to a decision:
- "Is eventual consistency acceptable for the feed, or do users need to see their own post immediately?"
- "I'm about to go deep on the write path. Is there another area you'd rather see?"
- "Does that match what you expected for scale?"
Avoid vague check-ins such as "Does that make sense?" They invite a nod and teach you nothing. Also avoid asking so often that you never finish a thought. One check-in per major section is usually enough.
Treat feedback as new requirements
A reviewer's question is often a hint. "What happens if this server dies?" is not a trap. It points to a requirement you have not yet addressed. Respond in three steps:
- Restate the concern to confirm you understood it.
- Say whether it changes a requirement, an assumption, or only the design.
- Make the smallest change that handles it, and say what it costs.
If you disagree, say so with a reason. "I'd keep a single primary here because the write volume is low, but I see the failure risk. A synchronous replica with automatic failover addresses it at the cost of slightly higher write latency." This shows judgment. Silently abandoning a sound decision, or defending a flawed one, shows less.
Iterate when requirements change
Requirements change in the middle of a conversation, and in real projects they change over months. The skill is to find what the change touches instead of redrawing everything.
Work through a change in this order:
- Name the change. State it as a requirement or an assumption: "Reads now need to be globally low-latency," or "Daily users are 100 million, not 10 million."
- Re-run the estimate. Update the numbers that depend on it.
- Find the affected decisions. Look at each "revisit if" you recorded and see which ones trigger.
- Change the minimum. Modify only the components whose limits are now exceeded.
- Re-check requirements. Confirm the change did not break an earlier requirement.
Make the estimate reusable
Keep the estimate in a form that is cheap to re-run. The script below is the capacity calculation from earlier, wrapped in a function that takes the assumptions as parameters. When the user count changes, you change one argument and read the new figures.
def estimate(dau, writes_per_user, reads_per_user, record_bytes, peak_factor=2):
seconds_per_day = 86_400
write_qps = dau * writes_per_user / seconds_per_day
read_qps = dau * reads_per_user / seconds_per_day
storage_per_day_gb = dau * writes_per_user * record_bytes / 1e9
return {
"avg_write_qps": round(write_qps),
"peak_write_qps": round(write_qps * peak_factor),
"avg_read_qps": round(read_qps),
"peak_read_qps": round(read_qps * peak_factor),
"gb_per_day": round(storage_per_day_gb, 1),
"tb_per_year": round(storage_per_day_gb * 365 / 1000, 1),
}
baseline = estimate(10_000_000, 5, 100, 500)
grown = estimate(100_000_000, 5, 100, 500)
for name in baseline:
print(f"{name:15} {baseline[name]:>10} -> {grown[name]:>10}")Running it shows every figure scaling by a factor of ten. Average writes go from about 579 to about 5,787 per second, and yearly storage goes from about 9.1 TB to about 91 TB. A single primary database that was comfortable before may now be near its limit, so the "revisit if" condition on the storage decision has triggered. The response is to apply the scaling tools from the earlier chapter, such as partitioning by owner, and to say what that costs: cross-partition queries become harder and remapping keys on resharding needs a plan.
Distinguish a change in kind from a change in size
Not every change is a scale change. Classify it before you respond:
| Type of change | Example | Typical response |
|---|---|---|
| Size | 10x more users | Re-estimate, then scale the components that hit limits |
| New function | Add search over items | Add a component, such as an index, and a new data flow |
| New quality target | Reads must stay available during a region outage | Revisit replication and failure handling |
| Tighter constraint | Deletions must be honored within 24 hours | Revisit data model and every copy of the data, including caches and backups |
A size change often needs no new boxes. A change in kind usually does. Saying which one you are facing shows the listener you understand the structure of your own design.
Common mistakes
- Silent jumps. Moving to a new topic without saying so leaves the listener lost. Announce transitions.
- Box lists. Naming components without tracing a request leaves the design unverified.
- Defending instead of evaluating. Treating a question as an attack closes off the useful part of the discussion.
- Restarting from scratch. A changed requirement rarely invalidates everything. Redrawing the whole design hides which decision actually mattered.
- Unrecorded assumptions. If you did not write the assumption down, you cannot tell later whether it was the one that failed.
- Overloading the first pass. Adding every possible component up front makes later changes hard to reason about. Start simple and add parts when a number or requirement demands them.
Exercises
Exercise
You designed a service for 10 million daily users with a single primary database. The reviewer says, "Assume 50 million daily users and reads must survive the loss of one data center." List, in order, the steps you take and name the two kinds of change involved.
Show answer
Name the change, then re-run the estimate with 50 million users (about 5x on all figures). Check the "revisit if" conditions to see which components now exceed their limits, for example the single primary and any single-node cache. Change only those parts, such as adding read replicas, partitioning, and replicas in a second data center, and state the costs (replication lag, more complex failover). Re-check all requirements. The two kinds of change are a size change (5x users) and a new quality target (availability across a data center failure).
Exercise
Rewrite this decision so it is easy to revisit later: "We'll use a cache because the system needs to be fast."
Show answer
One acceptable rewrite: "Decision: put a cache in front of the database for item reads. Because: reads are about 11,600 per second on average and the access pattern repeats the same keys, and the target p99 read latency is 100 ms. Cost: stale reads are possible after a write unless we invalidate on write, and we add a component that can fail. Revisit if: the hit rate falls below roughly 80 percent or consistency requirements tighten so that stale reads are not acceptable."
Exercise
A reviewer asks, "What happens if the cache goes down?" Why is it better to treat this as a requirement check than as criticism, and what is a reasonable first answer?
Show answer
The question points to a requirement you may not have stated, such as availability during cache failure. Treating it as a requirement check lets you decide what the system must do and make the smallest fitting change. A reasonable first answer: the API service falls back to reading from the database, so the system stays correct but slower. Then check whether the database can handle the full read load (about 11,600 average and 23,000 peak reads per second in the estimate). If not, add read replicas or rate limiting so a cache outage does not cascade into a database outage.