Skip to content

    System Design

    The Backend Architect Interview Framework

    A repeatable framework for a back-end system design interview: frame the problem, set SLOs, size it, design, go deep, walk the failures and state trade-offs.

    By Published 13 min read

    Share

    Standard lessonintermediateBackend System Design

    Before this: Case Studies: The Hard Problems Map and the Template, A Repeatable Approach

    What you'll learn: By the end of this lesson you will be able to run a system design interview as a time-boxed design review, turn a vague prompt into requirements and service level objectives, steer the choice of deep dives with the interviewer, walk a design for failure and state each trade-off with its cost, recover calmly from a mistake you notice halfway through, and say what changes at architect level.

    A pilot flies by a checklist, and the checklist does not teach flying. It makes sure that under pressure nothing important is skipped. A system design interview is the same kind of pressure: a stranger, a blank board, a prompt such as "design a file sharing service", and a clock. The framework here is a checklist for your reasoning and your talking, not a script and not a list of technologies to recite.

    This lesson makes no claim about any company's interview process, scoring or pass rates, and uses no hiring statistics. It describes one way to organise a design conversation that also works in a real design review. The step-by-step method is in A repeatable approach; here the focus is the conversation around it. Worked designs to practise on are the news feed and chat case studies, and the case-study template gives the written form.

    Verified on 2026-12-02 against the Google SRE book and the AWS Well-Architected Framework overview. The arithmetic was checked by hand; there is no lab.

    The core idea

    An interview is a short design review with someone who does not know your thinking, and the only thing they can see is what you say and draw. So the framework has two jobs: make the design sound, and make the reasoning visible. Seven stages move from the decisions that are cheapest to change to the ones that are most expensive, and each ends with a checkpoint where you say what you decided and ask whether it matches what the interviewer has in mind.

    Stage Output you leave on the board Illustrative time of 45 min
    1. Frame One-sentence restatement, who the users are 2
    2. Require Functional scope, out of scope, 3 to 5 targets (SLOs) 6
    3. Size Requests per second, storage, bandwidth, the one number that matters 4
    4. Interface and data 4 to 6 operations, 3 to 5 entities, top queries 6
    5. Sketch Boxes and arrows, one read path and one write path traced 8
    6. Deepen Two or three risky parts in depth 12
    7. Stress and decide Failure walk, trade-offs, what you would measure 7

    The 45 minutes is an assumption, not a fact about any interviewer; with a 60 minute slot, give the extra time to stage 6. The proportions are the point: the deep dive is the biggest block, and twenty minutes of boxes leaves no time for it.

    flowchart LR accTitle: The seven stages of the interview framework accDescr: Seven stages in order: frame, require, size, interface and data, sketch, deepen, stress and decide. A dotted arrow from stress and decide back to require shows that new insight can change a requirement, and each stage ends with a checkpoint question to the interviewer. F["1 Frame"] --> R["2 Require"] R --> S["3 Size"] S --> I["4 Interface and data"] I --> K["5 Sketch"] K --> D["6 Deepen"] D --> X["7 Stress and decide"] X -.->|new insight| R

    Figure 1. Seven stages, one loop back. How to read this: move left to right, spending the most time on stage 6. The dotted arrow is the honest part: a failure found in stage 7 may change a requirement from stage 2, and saying so is a strength.

    Three illustrations run through the lesson: a minimal example (the first 90 seconds of a prompt), a realistic example (ShopStream order tracking, in the practice section) and a failure example (a design that quietly violates a requirement stated at minute three).

    Stage 1 and 2: frame and require

    Frame. Restate the problem in one sentence and name the users: "So we are designing the page where a shopper sees where the courier is. Is that right?" Fifteen seconds that prevent ten minutes on a neighbouring problem.

    Require. Ask the questions whose answers change the design and write the answers where the interviewer can see them: functional (two or three features, users, out of scope) and non-functional (how fast, available, consistent, durable, big). The detail is in System Design: Requirements; the habit to add is to turn the non-functional answers into targets a design can be checked against.

    The Google SRE book defines a service level indicator (SLI) as a carefully defined quantitative measure of some aspect of the level of service, and a service level objective (SLO) as a target value or range of values for a service level measured by an SLI. It says to start from what users care about, not from what you can measure, and notes what different systems tend to care about: user-facing serving systems availability, latency and throughput; storage systems latency, availability and durability; big data systems throughput and end-to-end latency. For each indicator ask what the user would notice.

    Minimal example: the first 90 seconds for "design a URL shortener"
    
    Restate:   "A service that turns a long link into a short one and redirects."
    Ask:       "Redirects are the hot path; creation is rare. Do links expire?
                Custom aliases? Analytics? Is a redirect after 100 ms noticeable?"
    Targets:   "I'll assume: redirect p99 under 100 ms, 99.9% of redirects succeed,
                a created link must never silently change target."
    Out of scope (stated): abuse detection, billing.

    All three targets are stated assumptions; if the interviewer changes one, only the dependent numbers change.

    Three cautions from the same book make targets better. A simple average can obscure tail latencies, and percentiles let you consider the shape of the distribution, so state latency as a percentile. Do not pick a target because it matches today: start loose and tighten. And 100% is probably never the right reliability target: an incremental improvement in reliability may cost 100 times more than the previous increment, so "five nines" with no reason is a cost you cannot justify. Defining availability as the share of requests that succeed is a workable, measurable definition.

    Stage 3: size it, then use the answer

    Estimation is how you decide what kind of system this is. Keep it to a few lines: requests per second at average and peak, read to write ratio, storage per year, bandwidth if media is involved. Round hard and label every figure an assumption (System Design: Estimation; capacity planning does the same arithmetic for a real fleet). The step candidates skip is the last one: say what the numbers imply. "About 1,100 events per second is small for one database, so the interesting problem is freshness, not volume." That sentence shows you computed for a reason and picks your deep dive.

    Stage 4 and 5: interface, data and the sketch

    List four to six operations, the entities and the top three queries; the queries choose the store (System Design: API Design). Then draw the smallest design that meets the targets. Add a component only when a requirement or a number needs it, and trace one read and one write aloud. If a box has no answer to "why is this here", leave it off and name the trigger: "A cache is not needed at this load; the trigger is read latency over target."

    Stage 6: choosing and running the deep dives

    Pick the two or three places where the design is hardest or a failure hurts most, and choose them with the interviewer, who knows which part they want to see.

    sequenceDiagram accTitle: Choosing deep dives with the interviewer accDescr: The candidate finishes the sketch and names three risky areas with a short reason each, then recommends one and asks whether it matches the interviewer's interest. The interviewer either agrees or redirects, and the candidate goes deep on the agreed area, then checks in again. participant C as Candidate participant I as Interviewer C->>I: Sketch done. Risky parts: freshness, hot orders, delivery failures C->>I: I suggest freshness first because it sets the SLO. Does that fit? I-->>C: Yes, or: look at failures instead C->>C: Go deep on the agreed part (data, algorithm, failure) C->>I: Checkpoint: this is where I would stop. Next?

    Figure 2. Offer a menu, recommend one, ask. How to read this: naming the options shows you see the whole design, recommending one shows judgement, and asking keeps you aligned. A redirect is information about what matters, not a correction.

    A deep dive makes four moves: the mechanism (a data structure or protocol), the numbers (cost at your scale), the failure (what happens when it breaks) and the alternative (what else you considered and why not).

    Stage 7: stress the design and state the trade-offs

    Walk the failures. Ask of each box "what if this is slow, down or wrong?", of each arrow "what if this message is lost, late or duplicated?", and then "what happens at ten times the load?" The Google SRE book describes a cascading failure as one that grows over time because of positive feedback, so look for loops: retries adding load to a struggling service, unbounded queues, a failover that sends all traffic to the survivor. It says retries can destabilise a system and recommends randomised exponential backoff, a limit on retries per request, and deadlines so servers stop work nobody waits for. It defines load shedding as dropping some proportion of traffic near overload, and graceful degradation as going one step further by decreasing the quality of responses. Say these by function ("shed low-priority requests first, fall back to a cached answer"). Depth: load shedding and retry storms, timeouts, retries, backoff and jitter, graceful degradation.

    Say what you would measure. The SRE book's four golden signals are latency, traffic, errors and saturation, and it says that if you can measure only four metrics of a user-facing system, those are the ones. It also says to distinguish the latency of successful requests from failed ones, because a slow error is even worse than a fast error. Tie each stage-2 target to a signal and to an action when it is missed.

    State trade-offs in a fixed shape: the choice, what it buys, what it costs and the trigger that would change it. "Asynchronous replication keeps writes fast, a failover can lose the last few writes, and I'd revisit if the business cannot accept that." The AWS Well-Architected overview says its framework helps you understand the pros and cons of decisions and that reviews are constructive conversations, not audits; treat the interviewer the same way. It also recommends making decisions reversible where possible and using data to inform them, and a reversible choice with a revisit trigger is cheaper than a perfect guess.

    Trade-off Lean toward When the other side wins
    Breadth or depth Breadth through stage 5, depth in stage 6 The interviewer asks you to stay on one part
    Leading or following Lead, with checkpoints The interviewer redirects: follow at once
    Simple design or future-proof Simple, with a named trigger to grow A requirement demands the scale now

    When you find a mistake

    You will find mistakes, usually in stage 7. Do not hide or defend it; recover briefly and calmly.

    flowchart TD accTitle: Recovering from a mistake noticed mid-interview accDescr: When you notice a flaw, say so, state which requirement or number it breaks, choose between a local fix and a design change by asking whether the requirement or the design should move, state the cost of the fix, and continue from the affected stage. A["Notice a flaw"] --> B["Say it out loud and name what it breaks"] B --> C{"Is the requirement wrong or the design wrong?"} C -->|requirement| D["Re-confirm the requirement with the interviewer"] C -->|design| E["Propose a fix and state its cost"] D --> F["Continue from the affected stage"] E --> F

    Figure 3. Name it, fix it, move on. How to read this: the diamond is the useful question. Sometimes the right answer is to renegotiate the requirement ("is five seconds a hard limit or a goal?"), because in real work that is often the cheaper fix.

    What changes at architect level

    The stages are the same at every level; the weight differs. Treat this as practice guidance, not a statement about any employer's rubric:

    • You decide scope: propose what to leave out and why.
    • Cost and operations are design: who is on call, the monthly cost, the rollout and rollback.
    • Decisions are written down. The AWS overview recommends recording architectural decisions in a lightweight consistent format such as architecture decision records. Say the decision, the options and the revisit trigger as if writing one (a separate lesson covers architecture decision records and C4 diagrams).
    • Evolution is an input: what you build first, what you defer, what ten times of growth breaks.

    The other side of this topic. The front-end version of this conversation (component boundaries, state, rendering strategy, performance budgets) uses the same stages with different deep dives; it is covered in the front-end architect interview lesson.

    Build it

    There is no lab. The practice is the loop: pick a prompt, set a timer, talk aloud, and review the board against the table above.

    In practice: a mock round on ShopStream order tracking

    This is a realistic scenario, not a case history.

    The situation

    An engineer practising for an architect round gets the prompt "Design order tracking for a grocery marketplace". ShopStream (see the ShopStream brief) has 500,000 orders per day at its final stage (shared figure, illustrative). The mock interviewer plays a product owner.

    Starting architecture

    At stage 2 the interviewer gives one target: 95% of status changes visible to the shopper within 5 seconds (an assumption for this exercise). At stage 3 the numbers are 8 status updates per order plus a courier ping every 10 seconds over a 30-minute delivery: about 188 events per order, 94 million per day, about 1,100 per second on average and 3,300 at an assumed 3x peak. The first sketch, at minute 15:

    First sketch: courier updates and a polling shopper appCourier app to Tracking API (events); Tracking API to Orders database (write); Shopper app to Tracking API (poll every 30 s); Tracking API to Status cache (read); Status cache to Orders database (miss)Courier app: pings, statusesCourier apppings, statusesShopper app: polls for statusShopper apppolls for statusTracking APITracking APIStatus cache: 30 s expiryStatus cache30 s expiryOrders databaseOrdersdatabaseeventswritepoll every 30 sreadmiss

    Figure 4. The board at minute 15. How to read this: couriers write events to the API and the database; shoppers poll through a cache with a 30 second expiry. It is cheap and simple, which is why it was drawn first.

    Options considered

    Option Gain Cost Wrong when
    A. Poll every 30 s through a cache Cheapest: about 60 requests per order Status can be 30 s stale The freshness target is a few seconds
    B. Poll every 5 s Meets 5 s on average About 360 requests per order, six times A Most polls find nothing new
    C. Server push (SSE or WebSocket) with polling as a fallback Updates arrive in about a second; no empty polls Long-lived connections to manage The team cannot operate them

    The decision

    Option C, with a slow poll as the fallback. The engineer states the cost (a connection tier and its capacity) and the revisit trigger (if connection counts outgrow one tier, fall back to short polling for location only). See WebSockets, SSE and long polling.

    Rollout and verification

    Measure the time from status commit to shopper display as a percentile against the 5 second target, alert on the share of changes over target, and drop to polling when the push tier is unhealthy.

    The 2 a.m. failure

    The interview version of a 2 a.m. page: at minute 30, in the failure walk, the engineer sees that the first sketch (option A) cannot meet the target from stage 2, because a 30 second expiry allows up to 30 seconds of staleness. The design was drawn for cost and the SLO was forgotten. Figure 3 applies: say it, name what it breaks, ask whether the target is hard ("a goal for location, a hard limit for status?"), then propose option C and its cost.

    First check for any design: keep the targets written at the top of the board and test every box against them. Follow-up practice: repeat the prompt with the freshness target relaxed to 60 seconds, and option A becomes the right design.

    Architect's notes

    • Write the targets at the top of the board and test each decision against them.
    • Recommend, then ask: offer a menu of deep dives, pick one, check.
    • Say the cost of every choice and the trigger that would change it.
    • Practise out loud with a timer. Reading trains recognition; speaking trains this.

    Common mistakes

    • Naming technologies first, before targets and numbers.
    • Spending the clock on boxes, leaving no time for the deep dive.
    • Estimating without concluding: numbers that never change a decision.
    • Only the happy path: no failure walk or overload behaviour.
    • Hiding or defending a flaw instead of naming it.
    • Unsourced precision: five nines or exact figures with no basis.

    Key takeaways

    • An interview is a design review under a clock; the framework makes the reasoning visible.
    • Seven stages from cheap-to-change to expensive: frame, require, size, interface and data, sketch, deepen, stress and decide.
    • Turn non-functional answers into SLOs in percentiles, starting from what users care about.
    • State what your numbers imply, and agree the deep dives with the interviewer.
    • Walk every box and arrow for failure and overload, and say what you would measure.
    • State trade-offs as choice, gain, cost and revisit trigger; recover from a mistake by naming it and asking whether the requirement or the design should move.

    Practice exercises

    Exercise 1 (30 min). For "design a paste-bin service", write only stages 1 and 2: the restatement, the out-of-scope list and four SLOs with percentiles.

    Exercise 2 (1 hour). Redo the order-tracking numbers for 5,000,000 orders per day and a location ping every 5 seconds, and say in one sentence what they imply.

    Exercise 3 (2 hours). Run the whole framework on the chat or news feed case study with a 45 minute timer, aloud. List which stage ran over, which checkpoint you skipped and one trade-off stated without a cost.

    Official documentation

    Ask about this article

    Get answers grounded in this post. AI-generated — based on this article, and may be imperfect.

    Scaled AI Weekly

    Enjoyed this? Get more like it every Monday.

    Real architecture decisions, LLMOps patterns that survive production, and engineering leadership advice — from 12+ years of building at enterprise scale. Free. No spam. Unsubscribe anytime.

    Get new articles by email

    Free. We email a confirmation link first, and you can unsubscribe from any email.

    Join engineers building production AI systems

    Comments