Skip to the page

Interview rounds · 35 concepts

Frontend system design

How to run the design round that decides senior levels, plus the case studies companies actually ask.

Part 1 · 3 concepts

Running the design round

  1. 01

    How to run a design round (RADIO)

    Drive the round with RADIO: Requirements, Architecture, Data model, Interface (API), Optimisations. Say your time plan at the start, and keep each step short so you…

  2. 02

    Requirements and scoping

    Split requirements into functional (what users can do) and non-functional (speed, devices, network, scale, real-time, offline, accessibility, i18n, SEO, security). Turn…

  3. 03

    Diagrams, assumptions and trade-off language

    For each decision, name at least two options, choose one, and give the reason in one sentence tied to a requirement. Then say what you give up and when you would switch.

Part 2 · 5 concepts

Building blocks of a client architecture

  1. 04

    Component architecture and state ownership

    Break the screen into a tree of components and give every piece of state exactly one owner (the lowest common parent of its users). Keep most components presentational…

  2. 05

    Server state, client state and URL state

    Separate server state (cached copies of backend data, owned by a query cache), client state (UI-only, like an open panel or a draft) and URL state (filters, page, tab)…

  3. 06

    Normalised client stores and optimistic updates

    Store each entity once by id (posts, users, comments) and keep ordered id lists per view, so one change shows everywhere. Apply optimistic updates with a snapshot, so…

  4. 07

    API design for the frontend

    Design the client–server contract with example payloads, cursor pagination for live lists, one error shape and idempotency keys for writes. Choose REST, GraphQL or a…

  5. 08

    Choosing a rendering strategy

    Choose rendering per route: static or cached HTML for public, SEO-heavy pages, server streaming for personal or fresh parts, and client rendering for app-like screens…

Part 3 · 7 concepts

Cross-cutting concerns (the O in RADIO)

  1. 09

    Performance at scale

    Set budgets on Core Web Vitals measured at the 75th percentile of real users (LCP ≤ 2.5 s, INP ≤ 200 ms, CLS ≤ 0.1). Then ship less JavaScript, render fewer DOM nodes…

  2. 10

    Caching layers from CDN to component

    Describe caching as layers: CDN, browser HTTP cache, service worker, in-memory query cache and IndexedDB. For each one, say what is cached, for how long, and how it is…

  3. 11

    Real-time: polling, SSE and WebSockets

    Pick the simplest transport that meets the need: polling for slow changes, Server-Sent Events for server-to-client streams, WebSockets for two-way low-latency traffic…

  4. 12

    Offline-first and sync

    Offline-first means the app reads and writes a local store first, queues every change in an outbox with an idempotency key, syncs in the background with a clear…

  5. 13

    Frontend security in a design round

    Name the threats this product has (XSS from user content, CSRF on cookie sessions, token theft, clickjacking, risky third-party code) and the defence for each: escaping…

  6. 14

    Accessibility and internationalisation by design

    Design for keyboard and screen-reader users from the start: semantic HTML first, the ARIA Authoring Practices patterns for custom widgets, managed focus and polite live…

  7. 15

    Monitoring, feature flags and safe rollouts

    Make the design measurable with real-user Web Vitals, error tracking with source maps and business funnel events. Ship behind feature flags with staged rollouts, A/B…

Part 4 · 3 concepts

Frontend at organisation scale

  1. 16

    Design systems and component libraries

    A design system is tokens, accessible primitives, components and patterns shipped as a versioned package with docs, and the hard parts are the component API, theming…

  2. 17

    Micro-frontends and Module Federation

    Micro-frontends let separate teams build and deploy parts of one web app independently; Module Federation loads those parts at runtime and shares libraries like React…

  3. 18

    Monorepos for frontend teams

    A monorepo keeps many apps and packages in one repository with a workspace tool and a task runner that builds only what changed and caches results, which makes sharing…

Part 5 · 7 concepts

Classic case studies

  1. 19

    Case study: news feed

    A strong news feed design uses a normalised store with an ordered id list, cursor pagination loaded by an IntersectionObserver sentinel, virtualisation for long…

  2. 20

    Case study: autocomplete / typeahead

    A strong autocomplete design debounces input, cancels stale requests and ignores late responses, caches results by normalised query, follows the ARIA combobox pattern…

  3. 21

    Case study: chat app (WhatsApp Web / Slack)

    A strong chat design uses one WebSocket with heartbeats and backoff, a message state machine keyed by a client id, server sequence numbers for ordering and catch-up, an…

  4. 22

    Case study: image carousel and gallery

    A strong carousel design has a controlled/uncontrolled index API, moves slides with CSS transforms or scroll-snap, loads the current image eagerly and only neighbours…

  5. 23

    Case study: poll/quiz widget and embeddable widgets

    A strong embeddable-widget design picks the embed method (script SDK, iframe or web component) for isolation, keeps the host page fast and safe, lets the server enforce…

  6. 24

    Case study: notification system

    A strong notification design has a server-authoritative unread count, cursor-paginated history with grouped items, SSE (or an existing WebSocket) for live updates with…

  7. 25

    Case study: analytics dashboard

    A strong dashboard design keeps filters in the URL, makes each widget independent with its own query, skeleton and error boundary, protects rate-limited APIs with…

Part 6 · 4 concepts

Commerce, payments and delivery

  1. 26

    Case study: e-commerce listing, cart and checkout

    A strong e-commerce design renders listing and product pages from cached, SEO-friendly HTML with fresh price and stock streamed in, keeps filters in the URL, syncs the…

  2. 27

    Case study: payment checkout (Razorpay-style)

    A strong payment design creates the order on the server, opens the gateway's checkout with that order id, treats the browser's success callback as unverified until the…

  3. 28

    Case study: travel booking (Airbnb / MakeMyTrip)

    A strong booking design keeps search parameters in the URL, syncs a results list with a map, treats prices and availability as quotes that can expire, holds inventory…

  4. 29

    Case study: live order tracking (Swiggy / Zomato)

    A strong order-tracking design renders a server-driven order state machine, receives updates by push with a polling fallback, animates the rider marker between location…

Part 7 · 5 concepts

Collaboration and heavy clients

  1. 30

    Case study: collaborative editor (Google Docs)

    A strong collaborative-editor design uses a structured document model, sends small operations instead of the whole document, resolves concurrent edits with OT (a…

  2. 31

    Case study: Kanban / Jira board

    A strong Jira-board design normalises issues by id with ordered id lists per column, orders cards with fractional ranks so a move updates one record, moves cards…

  3. 32

    Case study: spreadsheet / data grid (Google Sheets)

    A strong spreadsheet design stores only non-empty cells in a sparse map, renders only visible rows and columns (DOM virtualisation or canvas), recalculates only the…

  4. 33

    Case study: Figma-like canvas basics

    A canvas editor keeps a scene graph of shapes separate from rendering, draws with Canvas or WebGL using a pan-and-zoom transform, finds what is under the pointer with a…

  5. 34

    Case study: video streaming player (YouTube / Netflix / JioHotstar)

    A strong video design streams adaptive HLS/DASH segments through a player library on Media Source Extensions with DRM via EME, picks bitrate from bandwidth and buffer…

Part 8 · 1 concept

Mobile-flavoured variants

  1. 35

    React Native versions of design questions

    The same RADIO structure works for mobile, but the requirements shift: offline-first local storage, battery and data limits, background restrictions, push for wake-ups…

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview