Sub topic 13
Communicate and iterate
This chapter assumes you have already clarified requirements, estimated capacity, and drawn a high-level design. It covers how to explain that design, and how to change it when requirements or feedback change.
Narrate your reasoning
A design is only useful if the listener can follow it. Say what you are doing and why, in small steps.
- State the next step before you take it: "I'll define the API first, because it shows the access patterns."
- Name each choice and its alternative: "I'm picking a relational database over a key-value store because we need joins on orders."
- Tie decisions to numbers: "About 11,600 average read QPS, so a cache in front of the database is worth the added complexity."
- Say what you are unsure about. "I don't know the read/write ratio for this feature. I'll assume 100:1 and revisit it" is better than a silent guess.
Silence reads as confusion, and a long monologue reads as lack of structure. Pause after each major section and check in: "Does this match what you had in mind, or should I go deeper somewhere?"
Walk the design in a fixed order
Use one consistent path so the listener always knows where you are. A reliable order is:
- Restate the requirements and assumptions in two or three sentences.
- Show the high-level diagram, left to right, from client to storage.
- Trace one request end to end, such as a write and then a read.
- Name the riskiest component and say you will go deeper there.
Tracing a real request is the most effective step. It exposes missing components and shows that the pieces connect.
Treat feedback as new requirements
When the interviewer or a reviewer pushes back, they are usually giving you information. A question like "What if traffic grows tenfold?" is a changed requirement. Do not defend the old design by reflex.
- Restate the change in your own words to confirm you understood it.
- Find which numbers or components it affects.
- Change only those parts, and say what you are leaving alone.
- State the new cost, such as extra latency, operational burden, or weaker consistency.
Example: responding to a changed requirement
Suppose you designed a service with one primary database and a read cache. The interviewer says reads are now 10 times higher than you assumed. A short, structured reply might be:
"That takes average reads from about 11,600 to about 116,000 QPS. A single cache node won't hold that, so I'll partition the cache by key across several nodes and add read replicas to the database for cache misses. Writes are unchanged, so the write path stays as it is. The cost is that replicas can lag, so a user may briefly read stale data. If that's unacceptable for this feature, I'd route that user's reads to the primary."
This reply names the new number, changes only the affected parts, and states the trade-off.
Common mistakes
| Mistake | Why it hurts | Better approach |
|---|---|---|
| Jumping into details early | The listener loses the overall picture | Show the high-level design first |
| Defending a design against feedback | It blocks the iteration the exercise is testing | Treat feedback as a new requirement |
| Hiding uncertainty | A hidden wrong assumption can break the design later | State the assumption and mark it for revisiting |
| Redrawing everything after a small change | It wastes time and hides what changed | Edit only the affected components |
Exercise
Your design uses one primary database. The interviewer says the product must now keep working if an entire data center fails. Describe how you would respond, in the order of the four-step feedback process.
Show answer
First, restate the change: the system must survive the loss of a whole data center, so a single location is no longer acceptable. Second, find the affected components: the database, the cache, and the stateless application servers all need a presence in a second location, and traffic routing must change. Third, revise only those parts: add a standby or replica database in a second data center with automatic failover, run application servers in both locations behind a global load balancer, and leave the API and data model unchanged. Fourth, state the cost: higher infrastructure expense, replication lag that may lose recent writes during failover, and more operational complexity.