Walk Through and Justify a System You Built From Scratch
System DesignModel answerLast updated
Open-ended round: describe a significant system you personally owned, then justify its design, technology choices and hardest problems while an interviewer questions each decision.
No system is assigned in this round. You choose a substantial project from your own past work, one you carried from design through production, and talk it through. Afterwards the interviewer questions your decisions in detail.
Questions you may want to settle first
- Must the project be a backend or distributed system, or can any sizable piece of software qualify?
- Is a team-built system acceptable if you state clearly which parts were yours?
- How is the time split between your presentation and the interviewer's questions?
- How do you handle details your former employer treats as confidential, such as exact traffic figures or internal names?
Part 1: Present the project
Cover these points:
- The problem, who it served, and how success was measured
- Scale and latency figures
- The architecture, including components, data stores, and the main read and write paths
- How a request or a unit of data travels through the system
- What you personally owned versus what the team or other teams owned
- The measurable outcome
Part 2: Defend it
The interviewer will pick components and ask why they look the way they do, what else you weighed, what failed, and what you would change. Respond as the system's owner. Be ready to discuss:
- Trade-offs behind your data stores, communication patterns and consistency model, linked to the project's actual requirements
- One challenge told in depth: symptom, diagnosis, fix, measured result
- Failure modes, scaling limits, and operations (monitoring, alerting, deployment, migrations)
- A candid retrospective: what breaks at 10x scale, and what you would do differently
Hints
Hint 1
Choose a project where you made real decisions and can quote real numbers (QPS, data volume, p99 latency). Rehearse the two-minute version and the ten-minute version, and keep the figures identical in both.
Hint 2
For every box in your diagram, prepare a one-sentence reason it exists, the alternative you rejected, and what would make you reconsider. Be able to drop down to the schema, key design, protocol, or retry behavior.
Hint 3
Prepare one hard-problem story in a fixed shape: symptom, how you diagnosed it, the fix, the before/after metrics, and the lesson. Also prepare an honest list of what you would change and what you do not know.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Model answer
This question has no single correct system. What matters is how you structure the story and how well you hold up under questioning. Below is a structure that works, followed by an illustrative example.
1. Budget the time
Spend about 8 to 10 minutes on the overview and leave the rest of the round for questions. A long overview takes time away from the part where depth is demonstrated.
2. Present: problem, scale, architecture, ownership, outcome
Framing (about 1 minute). Name the problem, the user, and the success metric. Example: "Internal teams needed a service to serve feature flags to about 300 services. Target: p99 evaluation under 10 ms, 99.99% availability, and changes visible within 5 seconds."
Scale. Give numbers and say how you derived them: peak QPS, data size, read/write ratio, growth rate. For instance, 50k evaluations per second at peak, 20k flags, and 100 writes per day make the system extremely read-heavy. That shapes everything else.
Architecture. Draw the main path left to right: clients, edge or API layer, core services, data stores, async pipelines. Then narrate one read and one write end to end. In the flag example, the SDK keeps a local cache and receives updates over a streaming connection, the control plane writes to a relational database, and a change log is published to fan out updates.
Ownership. Say plainly what you did: "I designed the propagation protocol and the SDK cache, and I ran the migration. Another team owned the admin UI." Use "I" for your decisions and "we" for team ones. Interviewers notice blurring.
Outcome. State a measurable result, such as p99 dropping from 80 ms to 6 ms, or incidents falling from 5 per quarter to 1.
3. Defend: trade-offs tied to requirements
For each major choice, use the pattern: requirement, options, choice, cost accepted.
- Data store. "We needed transactional updates and an audit trail at low write volume, so a relational database fit. A wide-column store would have scaled writes we did not have. The cost was a single primary, mitigated with replicas and failover."
- Communication. "Streaming push for freshness, with periodic polling as a fallback. Pure polling at 5 s across 300 services was affordable but wasted traffic. Pure push risks silent disconnects, so we added version numbers and a heartbeat."
- Consistency. "Eventual consistency with a bounded staleness target of 5 s was acceptable because flags are not financial data. Each update carried a monotonically increasing version so clients ignore stale messages."
Always say what would change your mind, for example "if writes grew 100x, I would shard by tenant."
4. One challenge in depth
Pick a story with a measurable arc.
- Symptom: intermittent stale flags in one region, affecting about 0.5% of clients.
- Diagnosis: correlated with load balancer idle timeouts closing streams; clients did not detect the dead connection. Confirmed by reproducing with a lowered timeout and by lag metrics per client.
- Fix: application-level heartbeat every 15 s, reconnect with jittered exponential backoff, and a resync using the last seen version.
- Result: stale-client rate dropped from 0.5% to under 0.01%; p99 propagation stayed under 5 s.
- Lesson: add freshness metrics before launch, not after.
5. Failure modes and operations
Be ready to answer "what happens when X dies?" for every component.
- Control plane down: SDKs keep serving the last known values from memory and disk, so evaluation is unaffected and only changes are blocked.
- Bad config pushed: staged rollout, validation, instant rollback via versioned history.
- Thundering herd on reconnect: jittered backoff and a snapshot served from a CDN or cache.
- Operations: dashboards for propagation lag and error rate, alerts on SLO burn rate, canary deploys, and backward-compatible schema migrations (expand, migrate, contract).
6. Retrospective
Give an honest answer. At 10x scale the single relational primary and the stream gateway fleet would be the first limits; you would add tenant-based sharding and regional gateways. Name something you would do differently, such as building the observability earlier or avoiding a custom protocol where an existing one sufficed.
Common mistakes
- Inconsistent numbers between the overview and the deep dive.
- Claiming the whole team's work as yours, or hiding your role behind "we".
- Listing technologies without the requirement that justified them.
- Being unable to go below the box diagram to schemas, retries, or failure behavior.
- Defending every decision as perfect; strong candidates acknowledge weaknesses and say "I don't know, but I would reason it this way".
- Overrunning the overview and leaving little time for depth.
- Revealing confidential figures; instead, use rounded or relative numbers and generic component names.
What to practice
Rehearse a two-minute and a ten-minute version, draw the diagram from memory, and for each component prepare: why it exists, the rejected alternative, its failure behavior, and how it would scale.