Skip to content

    Frontend System Design

    The Front-End Architect Interview Framework

    A repeatable way to run a front-end architecture interview: frame, set targets, model data, sketch, go deep, stress the design and state each trade-off.

    By Published 18 min read

    Share

    Flagship lessonintermediateFrontend System Design

    Before this: How to Read and Reproduce a Front-End Case Study, A Repeatable Framework for Front-End Design Problems

    What you'll learn: By the end of this lesson you will be able to run a front-end architecture interview as a time-boxed design review: turn a one-line prompt into scope and measurable targets, model the data and the component boundaries, sketch the smallest design that meets the targets, choose the deep dives together with the interviewer, walk the design for failure, state each trade-off with its cost, recover calmly from a mistake, and say what changes at architect level.

    A guide with a ten-minute slot and a visitor who has never seen the building does not walk every corridor. The guide asks what the visitor wants to see, shows the main hall, points at two rooms worth a longer look, and says out loud which wings were skipped and why. A front-end design interview is a short tour like that, except that the visitor is also judging the guide. The framework here is a checklist for your reasoning and your talking: under a clock, nothing important is skipped and the interviewer can see why you decided what you decided. It is not a script and not a list of libraries to recite.

    This lesson makes no claim about any company's interview process, scoring, question bank or pass rates, and it uses no hiring statistics. Round formats vary, so ask what you are being asked to do. It describes one way to organise a design conversation that works equally well in a real design review. It builds on the seven passes of the front-end design framework and the habits of the case study method, and adds the part those lessons leave out: how to run the conversation.

    The core idea

    An interview is a short design review with someone who cannot see your thinking. All they can see is what you say and draw. So the framework has two jobs: make the design sound, and make the reasoning visible. It has seven stages, ordered from the decisions that are cheapest to change to the ones that cost the most, and each stage ends with a checkpoint: say what you decided, and ask whether it matches what the interviewer has in mind.

    Stage What you leave on the board Illustrative time of 45 min
    1. Frame One sentence, the user, the device, what is out of scope 3
    2. Targets Three to five testable sentences, labelled as assumptions 4
    3. Data and API Entities, who owns each, how fresh, three to five calls 7
    4. Sketch Component tree, state, one read path and one write path 8
    5. Deepen Two or three risky parts in depth 13
    6. Stress A failure walk and what you would measure 6
    7. Decide Trade-offs with a cost and a revisit trigger, then evolution 4

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

    Figure 1. Seven stages, one loop back

    flowchart LR accTitle: The seven stages of the front-end interview framework accDescr: Seven stages in order: frame, targets, data and API, sketch, deepen, stress, decide. A dotted arrow from stress back to targets shows that a failure can change a target, and a dotted arrow from stress back to sketch shows that a missing state can change the design. Each stage ends with a checkpoint question to the interviewer. F["1 Frame"] --> T["2 Targets"] T --> D["3 Data and API"] D --> S["4 Sketch"] S --> P["5 Deepen"] P --> X["6 Stress"] X --> Y["7 Decide"] X -.->|"a failure changes a target"| T X -.->|"a missing state"| S

    How to read this: move left to right and spend the most time on stage 5. The dotted arrows are the honest part: a failure found in stage 6 may change a target from stage 2 or add a state to the sketch, and saying so is a strength, not a weakness.

    Three illustrations run through the lesson: a minimal example (the first 90 seconds of a prompt), a realistic example (a mock round on a notifications bell and inbox, near the end) and a failure example (a design that quietly breaks a requirement stated at minute three).

    Stage 1: frame

    Restate the problem in one sentence and name the person using it: "So we are designing the bell in the app header that tells a signed-in user something new has arrived, and the inbox it opens. Is that right?" Fifteen seconds spent here prevent ten minutes spent on a neighbouring problem.

    Then ask the questions whose answers change a front-end design. They are different from the back-end questions, because the deciding facts are about people, devices and the page:

    • Who and where. Signed-in or anonymous? Which devices and which network conditions matter most? A phone on a weak connection and a desktop on an office network lead to different designs.
    • Kind of page. Does it need to be found by a search engine? Is it a document, an application behind a login, or both? That decides the rendering approach (see Choosing a Rendering Strategy per Page).
    • Behaviour. Does it change while the user watches? Must it work offline? Do several people edit the same thing?
    • Reach. Which languages? Which accessibility needs? Is there an existing design system or stack the new work must use?

    Write the answers down, and write what is out of scope: that list stops the problem growing.

    Minimal example: the first 90 seconds for "design a search box with suggestions"
    
    Restate:   "A box in the store header that suggests products as the shopper types."
    Ask:       "Signed-in or anonymous? Mostly phones? Must it work with a screen
                reader and with no JavaScript? Who owns the suggestion endpoint?"
    Targets:   "I'll assume: typing never stalls, a late answer never replaces a newer
                one, and pressing Enter always searches what was typed."
    Out of scope (stated): spelling correction, personalisation, the server's index.

    All three targets are stated assumptions. If the interviewer changes one, only what depends on it changes.

    Stage 2: targets

    "Make it fast" cannot be checked. A target is a testable sentence: a person, a condition and an outcome. The requirements lesson gives the template. Front-end targets usually come from three places.

    Published thresholds. web.dev says that, for Core Web Vitals, a Largest Contentful Paint of 2.5 seconds or less is good, an Interaction to Next Paint (INP) of 200 milliseconds or less is good, and a Cumulative Layout Shift of 0.1 or less is good, and that the value to assess is the 75th percentile of page views. It adds that the thresholds are not separated by device: the same ones apply to mobile and desktop. web.dev defines INP as the latency of click, tap and keyboard interactions. Quoting these, with the percentile, is stronger than saying "it should feel instant". See Core Web Vitals.

    Correctness rules. Some targets are not numbers: "an answer for old text is never shown", "a card never appears twice", "a failed save never loses what the user typed". These are the ones that decide the architecture.

    Budgets. web.dev defines a performance budget as a set of limits imposed on metrics that affect site performance, and lists three kinds: quantity-based limits (such as script size), milestone timings, and rule-based scores from tools. In an interview a budget is a way to show that the design has a limit it will be held to. Offer one as an assumption ("a script budget I would set from measurement") rather than inventing a figure; see Performance Budgets and Profiling.

    Keep the list on the board. Every later decision is checked against it.

    Stage 3: data and API

    A front-end design is mostly a decision about where each piece of data lives. For every piece of data on the screen, say four things: what it is, who owns it (the server, the URL, a component, a store), how stale it may be, and how it changes. This stops two parts of the page keeping two copies of one fact.

    Question Typical answers Depth
    Who owns it? Server, URL, local component state, shared store Local vs Global State
    How fresh must it be? Live, seconds, a visit, until saved Server State, Caching and Revalidation
    Is there a copy that can be derived? Store the source, derive the rest Derived and Normalized State
    What does the contract look like? Three to five calls, pagination, errors API Integration Basics

    Then list the calls the front end needs, in plain words: "list the latest items with a cursor, mark one as read, mark all as read". Three to five is enough. For a component-level prompt, replace the calls with the component's public interface: its props, its events and what it owns (see Component Composition and API Design). The skill on show is the same: say what crosses the boundary and who is responsible for each side.

    Stage 4: sketch

    Draw the smallest design that meets the targets. Start from the browser and move outward: the component tree, the state each part owns, and the data flow. Then trace one read (the page loads and data appears) and one write (the user acts and the screen changes), aloud. Add a box only when a target or a number needs it. If a box has no answer to "why is it here", leave it off and name the trigger that would add it: "a shared store is not needed while only the header reads this; the trigger is a second screen that needs it".

    Figure 2. What the board holds at minute 15 for a notifications bell

    A bell and inbox in the browser read a notification store that loads a page from an inbox API and receives new items from an event streamBell and inbox to Store (events); Store to Bell and inbox (snapshot); Store to Inbox API (load page, mark read); Event stream to Store (new item)OUR FRONT ENDBell and inbox: count, list, read stateBell and inboxcount, list, readstateStore: items, unread countStoreitems, unreadcountInbox API: pages, mark readInbox APIpages, mark readEvent stream: new itemsEvent streamnew itemseventssnapshotload page, mark readnew item

    How to read this: the first sketch is small on purpose. One store owns the items and the unread count. The page of older items comes from a request, and new items arrive on a stream. The read path is "open the page, load a page of items"; the write path is "open the inbox, mark as read". Everything else is added only when a target needs it.

    Stage 5: choose and run the deep dives

    Pick the two or three places where the design is hardest or where a failure hurts most, and choose them with the interviewer, who knows which part they want to see. For a front-end prompt the usual candidates are rendering and delivery, state and synchronisation, performance, accessibility, and resilience.

    Figure 3. Offer a menu, recommend one, ask

    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 agrees or redirects. 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: live updates, unread-count consistency, accessibility C->>I: I suggest live updates first because they set the connection model. Does that fit? I-->>C: Yes, or: look at accessibility instead C->>C: Go deep on the agreed part (mechanism, numbers, failure, alternative) C->>I: Checkpoint: this is where I would stop. Next?

    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 in the same order every time.

    1. Mechanism. How it works, concretely: a data flow, a state machine, a protocol. "The store applies each incoming item once, keyed by id, so a repeated delivery changes nothing."
    2. Numbers. What it costs at your scale or on your device. Label every number as an assumption or a source.
    3. Failure. What happens when it breaks, is slow or is wrong, and what the person sees.
    4. Alternative. What else you considered and why not.

    The search autocomplete case is a full deep dive on one component, and the collaborative editor case one on a whole product.

    Stage 6: stress the design

    Walk the failures. For every call ask: what if it is slow, wrong, late or never returns? For every piece of state ask: what if two copies disagree? Then walk the person's side: a slow device, a small screen, a keyboard-only user, a screen-reader user, a user whose connection drops mid-action. The failure pass is the one most often skipped, and it is where a strong answer separates itself. Error, Loading and Empty States is the checklist.

    Say what you would measure. Tie each target from stage 2 to a field measurement and an action when it is missed. web.dev's definition of INP is a field metric at the 75th percentile, so the practical answer is real-user monitoring segmented by device (see Real User Monitoring), plus an alert on the correctness rules ("count of duplicate items shown").

    Security and accessibility are not extras. Name where untrusted data is rendered and how it is encoded (see XSS Defenses), and say how a keyboard and a screen-reader user operate and are told about changes. WCAG 4.1.3 (Status Messages, Level AA) asks that status messages can be presented by assistive technology without receiving focus, which is exactly the situation of a live notification count. MDN's guide to live regions says a polite region is spoken when the user is idle and that the most reliable way to have a live region registered is to include it in the initial markup. One sentence like that, with the reason, is worth more than the word "accessible".

    Stage 7: state the trade-offs and the evolution

    State each trade-off in a fixed shape: the choice, what it buys, what it costs, and the trigger that would change it. "Server-sent events keep the connection model simple and one-way, they cost a long-lived connection per tab, and I would revisit if the product needs messages from the client at high rate." The shape works because it is checkable: the interviewer can disagree with the cost or the trigger, and you can respond.

    Trade-off Lean toward When the other side wins
    Breadth or depth Breadth through stage 4, depth in stage 5 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 target demands the scale now
    Build or adopt a library Adopt, and say what you give up The library's cost exceeds a budget you stated

    Finish with evolution: what you would build first, what you would defer, and what ten times the traffic or the content would break. Writing a decision down is the subject of the lesson on architecture decision records and documentation (a planned lesson).

    Different prompts, the same stages

    Formats differ, so use the first minute to learn which one you have.

    • A product feature ("design a news feed", "design a notifications bell"). All seven stages; stage 5 is the largest.
    • A reusable component or a small library ("design a date picker", "design a data table"). Stage 3 becomes the component's public interface and its state, and stage 5 usually goes to accessibility, keyboard behaviour and composition. The planned lesson on component API and data model rounds covers this format.
    • A platform or an architecture ("how would you structure a front end for twenty teams?"). Stage 1 is about teams and deployment, stage 3 about boundaries and contracts, and stage 5 about the build, shared dependencies and failure isolation. See Monolith vs Micro-Frontends.
    • Estimation and capacity questions: see the planned lesson on front-end estimation drills.

    When you find a mistake

    You will find mistakes, usually during stage 6. Do not hide or defend one. Recover briefly and calmly.

    Figure 4. Name it, fix it, move on

    flowchart TD accTitle: Recovering from a mistake noticed mid-interview accDescr: When you notice a flaw, say so, name which target or state it breaks, decide whether the target 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 target wrong or the design wrong?"} C -->|target| D["Re-confirm the target with the interviewer"] C -->|design| E["Propose a fix and state its cost"] D --> F["Continue from the affected stage"] E --> F

    How to read this: the diamond is the useful question. Sometimes the right answer is to renegotiate the target ("is a few seconds of delay acceptable for the count, if never wrong?"), 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 as a statement about any employer's rubric.

    • You decide scope. Propose what to leave out and why, instead of waiting to be told.
    • The people and the pipeline are part of the design. Who owns the component, how it is released, how it is rolled back, how a regression is noticed.
    • Decisions are written down. Say the decision, the options and the revisit trigger as if you were writing one.
    • Evolution is an input. What you build first, what you defer, and what a second team using the same component would change.
    • Cost is a requirement. Bundle size, device capability and the cost of a wrong choice for the people using the page are costs a good answer names.

    The other side of this topic. The back-end version of this conversation (service level objectives, capacity numbers, data stores, replication) uses the same shape with different deep dives; see The Backend Architect Interview Framework. A strong candidate for a full-stack role switches between the two at the API boundary.

    Build it

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

    Check Yes or no
    Did I restate the problem and name the user and device?
    Are the targets written and labelled as assumptions or sources?
    Does every piece of data have an owner and a freshness?
    Did I trace one read and one write?
    Did I agree the deep dives with the interviewer?
    Did I walk failure, accessibility and measurement?
    Does every trade-off have a cost and a revisit trigger?

    In practice: a mock round on a notifications bell and inbox

    The situation

    An engineer practising for an architect round gets the prompt "Design the notification bell and inbox for a web application". The mock interviewer plays a product owner. The numbers in this exercise are assumptions: a signed-in user base that mostly uses laptops, with a meaningful share on phones, who often keep the application open in several tabs.

    Starting architecture

    At stage 2 the product owner gives one rule: the unread count must never be wrong for long, and an item must never appear twice. The engineer adds two assumed targets: a click on the bell responds within the INP threshold of 200 milliseconds at the 75th percentile, and a new item appears within a few seconds. The first sketch, at minute 15, is Figure 2: one store, a request for the page of items, and a stream of new items.

    Options considered

    Option Gain Cost Wrong when
    A. Poll the inbox API every 30 seconds Simplest, plain requests New items up to 30 seconds late; a request per tab per interval The freshness target is a few seconds
    B. Poll every few seconds Meets the freshness target Many requests that find nothing, multiplied by tabs Most polls are empty
    C. Server-sent events for new items, a request for the first page Updates arrive as they happen; one-way is enough A long-lived connection per tab; reconnection to design The product needs messages from the client at a high rate

    The decision

    Option C. The engineer states the cost and the trigger. MDN's guide to server-sent events says that EventSource restarts the connection by default if it closes and that the server can set the reconnection time with the retry field. It also says the server must respond with the text/event-stream MIME type, that a server can send a comment periodically to keep a connection from timing out, and that an event's id field sets the connection's last event ID. The mechanism for correctness is the engineer's own: each item has an id, the store keys items by id so a repeated delivery changes nothing, and after a reconnection the store reloads the first page from the inbox API so nothing is missed. See Server-Sent Events in Depth.

    Rollout and verification

    Measure the time from an item being created to it appearing on screen, as a percentile; count duplicates shown (the correctness rule) and alert if it is above zero; and keep a polling fallback behind a flag for the case where the stream is unhealthy. Check the bell with a keyboard and a screen reader: the unread count is announced politely through a status region that exists from the first render, and the inbox list does not steal focus.

    The 2 a.m. failure

    At minute 30, in the failure walk, the engineer sees a problem. MDN says that when SSE is not used over HTTP/2, the number of open connections is limited per browser and domain, set to a very low number (it says 6), and that this is especially painful with multiple tabs. A user with many tabs open can run out of connections, and every other request to the same domain waits. The design was drawn for one tab. Figure 4 applies: say it, name what it breaks, and ask whether tabs matter ("many tabs are common in this product, so yes"). The fixes have costs: serve the stream over HTTP/2, where MDN says the number of simultaneous streams is negotiated (default 100), or share one connection between tabs and let one tab fan the items out to the others (see Cross-Tab Sync with BroadcastChannel). The engineer picks sharing for tabs plus HTTP/2 on the server, states the cost (a leader tab to elect, and a handover when it closes) and the trigger to revisit.

    First check for any design: write the product's habits at the top of the board (many tabs, mostly laptops) and test each box against them. This is the failure example promised at the start: a design that quietly breaks a habit stated in stage 1.

    This is a realistic scenario, not a case history.

    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.
    • Cite the source for a number, or label it an assumption. An invented figure costs more than none.
    • Practise out loud with a timer. Reading builds recognition; speaking builds this skill.

    Common mistakes

    • Naming libraries first, before targets and data.
    • Spending the clock on boxes, leaving nothing for the deep dive.
    • Skipping the person's side: no device, no keyboard, no screen reader, no failure.
    • Only the happy path, with no slow, late or missing data.
    • Invented precision: exact figures with no source and no label.
    • Hiding or defending a flaw instead of naming it and asking whether the target or the design should move.

    Key takeaways

    • An interview is a design review under a clock; the framework makes your reasoning visible.
    • Seven stages from cheap-to-change to expensive: frame, targets, data and API, sketch, deepen, stress, decide.
    • Write targets as testable sentences, using published thresholds and a percentile or correctness rules.
    • Decide where every piece of data lives before drawing boxes.
    • Agree the deep dives with the interviewer, and run each as mechanism, numbers, failure, alternative.
    • State trade-offs as choice, gain, cost and revisit trigger, and recover from a mistake by naming it.

    Practice exercises

    Exercise 1: Beginner (30 minutes). For "design a comment box under an article", write only stages 1 and 2: the restatement, the out-of-scope list and four targets, at least one of them a correctness rule.

    Exercise 2: Intermediate (1 hour). Take the notifications mock round and rewrite stage 1 for the prompt "anonymous visitors, content must be indexed". List which later stages change and why.

    Exercise 3: Intermediate (2 hours). Run the whole framework aloud on the search autocomplete case with a 45-minute timer. Afterwards list which stage ran over, which checkpoint you skipped and one trade-off you stated without a cost.

    Exercise 4: Advanced (3 hours). Choose a prompt from the "different prompts" list that you have not practised (a component, a platform). Write the stage 3 artifact for it and say how stage 5 changes.

    Official documentation

    In this course

    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