KatInterview

Defend the Architecture of a System You Built, End to End

System DesignModel answer
HardModel answerSystem Designsystem-designarchitecture-reviewscalability

Last updated

Walk through a non-trivial system you own, from diagram and invariants to scaling, security, SLOs, a real incident, a 10x plan and a hindsight redesign.

Task

Choose one substantial project you have personally worked on and present it as a deep technical review. Assume the listener will pick any layer and keep asking "why" until you run out of answers, so be ready to sketch the system and defend each choice with concrete numbers and real examples rather than generalities.

Cover these twelve areas:

  1. Architecture sketch. Show the components, data stores and the interfaces between them (REST, gRPC, streaming, WebSocket, queues).
  2. Flows and invariants. Describe the main data flows and list the correctness rules the system must never break, for example "at most one active owner per resource".
  3. Read and write paths. Trace one read and one write hop by hop, including caching, idempotency handling and a latency budget.
  4. Storage. Explain the schema, your choice of relational, NoSQL, cache or cold storage, and your partition keys and indexes.
  5. Decisions and trade-offs. Justify major technology choices and name what you gave up (consistency vs. availability, push vs. poll, write-through vs. write-behind, and so on).
  6. Scale and capacity. Provide rough QPS, message rates and storage figures, name the bottlenecks and describe how you plan capacity.
  7. Consistency and reliability. State your consistency model, delivery guarantees, failure handling (retries, sagas, circuit breakers) and disaster-recovery targets (RPO/RTO).
  8. Security. Cover authentication, authorization, service-to-service trust, encryption, PII handling and compliance.
  9. Observability. Describe logs, metrics and traces, plus concrete SLIs, SLOs, alerts and runbooks.
  10. An incident or hard decision. Give the root cause, impact and mitigation of something that really happened.
  11. Two changes for 10x traffic. Propose two specific modifications and quantify why each helps.
  12. Redesign with hindsight. Say what you would do differently today and why.

What a good answer looks like

Be specific and quantitative. Tie later sections back to the invariants from section 2. For every choice, mention the alternative you rejected. Aim for a presentation that fits roughly 45 minutes.

Hints

Hint 1

Pick a system of moderate size that you can fully explain, with every box and arrow justified, rather than a famous system you only touched briefly.

Hint 2

State your invariants early and, for each one, name the exact mechanism that enforces it (unique constraint, conditional update, transactional outbox, consumer dedupe). Reuse them as the thread through reliability and incident discussion.

Hint 3

Attach a number to every claim: latency budget per hop, QPS at average and peak, bytes per message, storage per day, SLO targets, RPO/RTO. Then derive the bottleneck from those numbers and propose 10x changes that attack it directly.