Walk Through and Defend the Architecture of a System You Built
System DesignModel answerLast updated
Explain a production service you own end to end, then defend its data flow, storage, failure handling and trade-offs as an interviewer probes the weakest points.
You are asked to describe a production service that you personally own or helped design, and then to go deeper on whatever the interviewer chooses to examine. No fresh problem is posed. Your own system is the material, and the follow-up questions steer the conversation toward how parts work, why they were chosen, how they fail, and what you would redo.
Prepare an answer you could deliver with a whiteboard or shared drawing tool.
What is expected
- A short opening that explains what the service does, who calls it, how large it is, and which requirements shaped it.
- A diagram showing the main components and the flow of the key read and write paths.
- Willingness to go deep on any component: data model, storage engine, APIs, consistency, scaling, failure handling.
- Honest reasoning about decisions, including alternatives you rejected and weaknesses you still live with.
- Operational detail: monitoring, past incidents, and how the design changed over time.
- A clear split between what you personally decided or built and what the wider team did.
Constraints
- Pick a system whose major decisions you made or can defend. A service you merely used as a client is a poor choice.
- Keep confidential information out. Rename components and round or generalize figures while keeping the technical substance.
Points to settle at the start
- How long should the overview run before questions begin?
- Should the walkthrough span the whole service or focus on your own contribution?
- Does the interviewer know the domain, or should business context come first?
Hints
Hint 1
Open with purpose, callers, scale (requests per second, data volume, latency and availability targets) and the one or two requirements that most shaped the design, before drawing anything.
Hint 2
Trace one concrete request through the diagram for the main read path and the main write path. Concrete flows invite targeted questions on areas you have prepared, and they expose where state lives.
Hint 3
For every major component, prepare three answers: why this choice, which alternative you rejected and why, and what breaks first under load or failure. Also prepare one thing you would change today.
Hint 4
Rehearse the incident story: what failed, how you detected it, how you mitigated it, and what design or process change followed. Use 'I' for your own decisions and 'we' for the team's.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Approach
This question measures whether you understand a system deeply enough to explain it simply, then defend it under pressure. Treat it as a structured conversation. Start with a short overview, then go deeper wherever the interviewer points.
1. Choose the right service
Pick something you owned or heavily shaped, with real scale, real failures, and real trade-offs. Avoid trivial CRUD services unless you can bring out interesting depth. Decide beforehand what you can say publicly and replace sensitive names with generic ones (for example "the metadata store" or "the ingestion pipeline").
2. Opening (2 to 3 minutes)
Cover these in order:
- Purpose: one sentence on what the service does and the problem it solves.
- Callers and contract: who uses it and through what interface (RPC, REST, event stream).
- Scale: for example "roughly 20k reads per second at peak, 500 writes per second, 5 TB of data, p99 under 100 ms, 99.95% availability". Approximate numbers are fine.
- Key requirements: pick the two or three that drove the design, such as low read latency, strict ordering, or durability.
- Your role: what you designed, built, or operated.
Then ask whether the interviewer wants to dive in or hear the high-level flow first. This also resolves the questions about overview length and focus.
3. High-level diagram
Draw clients, entry point (load balancer or gateway), stateless service tier, caches, primary storage, asynchronous components (queues, workers), and external dependencies. Then walk through:
- Write path: validation, authorization, persistence, event publication, acknowledgement. State where durability is guaranteed.
- Read path: cache lookup, fallback to storage, invalidation or expiry.
Mark which tiers are stateless and where state lives, because most follow-ups relate to this.
4. Depth on demand
Prepare a short, concrete answer for each of these areas.
Data model and storage
- Schema, keys, access patterns, and why you chose that store (relational vs key-value vs wide-column).
- Partitioning strategy, hot-key handling, and how you reshard.
- Growth: retention, archival, and compaction.
Consistency and correctness
- Where you need strong consistency and where eventual is acceptable.
- Idempotency for retries (request IDs, deduplication) and delivery semantics (at-least-once plus idempotent handlers).
- How you handle concurrent writers (optimistic versioning, transactions, or single-writer partitions).
Scaling and performance
- Horizontal scaling of the stateless tier, capacity planning, load-shedding, and backpressure.
- Cache hit rate, stampede protection, and queue depth limits.
- A real bottleneck you found, how you measured it, and the fix.
Failure handling
- Behavior when a dependency is slow or down: timeouts, retries with exponential backoff and jitter, circuit breakers, and graceful degradation.
- Replication and failover, RPO/RTO, and what a regional outage does.
- Poison messages and dead-letter handling.
Operations
- Key metrics (latency percentiles, error rate, saturation, queue lag), SLOs and alerting.
- Deployment: canaries, feature flags, rollback, and schema migrations without downtime.
- One incident told in full: impact, detection, mitigation, root cause, and the lasting fix.
5. Trade-offs and rejected alternatives
For each major decision, use this pattern: "We needed X, considered A and B, chose A because of Y, and accepted the cost Z." Example: "We chose asynchronous replication to keep write latency low, accepting a small window of stale reads, and we made the critical read path go to the primary."
Also volunteer known weaknesses and what you would do next, such as splitting a monolithic worker, replacing a hand-rolled scheduler, or improving observability. Candidates who can criticize their own design come across as stronger than those who defend everything.
6. Separate your contribution from the team's
Say concretely what you decided, what you implemented, and what you influenced. Interviewers probe this with questions such as "why did you choose that?" If the real answer is "it was already there," say so and then explain what you understand about it and how you would assess it now.
Common mistakes
- Starting with component names and no purpose, scale, or requirements.
- Giving vague claims ("it scales well") with no numbers or mechanisms.
- Describing only the happy path and skipping failure modes.
- Claiming the team's work as your own, or understating your own role.
- Becoming defensive when challenged instead of discussing trade-offs openly.
- Leaking confidential details or going so generic that nothing technical remains.
- Rambling through the overview and leaving no time for the interviewer's questions.
Example opening
"This service stores and serves user preference data for several downstream products. Peak load is about 30k reads per second and 1k writes per second over roughly 2 TB, with a p99 read target under 50 ms. Reads are served from a regional cache in front of a partitioned key-value store, while writes go to the primary and publish change events to a queue so caches and downstream consumers stay current. I designed the write path and the invalidation mechanism, and I ran the migration to a new partitioning scheme. Would you like to start with the storage layer or the invalidation flow?"
Preparation checklist
- Draw the diagram from memory in under three minutes.
- Know three numbers cold: peak traffic, data size, latency target.
- Have two stories ready: one design decision you defended and one incident.
- Name one thing you would change and explain why.