Last Minute Notes

Frontend System Design

A beginner to advanced frontend system design library: the RADIO framework and estimation, rendering and delivery, performance and Core Web Vitals, state and data management, real-time and offline sync, architecture and micro-frontends, security, accessibility and i18n, testing and release, 16 worked UI and application designs, and an interview playbook.

Start here for frontend and full-stack design rounds, from "design a typeahead" to "design the web client for a collaborative editor used by 20 teams". Each page teaches the topic the way interviews probe it: the requirement, the architecture, the data flow, the trade-off, and how you would measure and defend the result. Every runnable snippet was executed, and current facts are folded in: INP as a Core Web Vital, React Server Components and streaming, speculation rules, the Popover and dialog top layer, passkeys, Trusted Types, and CRDT libraries.

  1. 01
    Frontend System Design Fundamentals

    How frontend system design interviews work: what is being tested, the RADIO framework with a 45 minute time budget, requirements and clarifying questions, frontend estimation (bytes, requests, DOM nodes, memory), component API design, data model and API contract, trade-off vocabulary, and how to communicate a design.

  2. 02
    Rendering and Delivery

    Where and when HTML is produced and how it reaches the user: the critical rendering path, CSR, SSR, SSG, ISR, streaming, React Server Components, islands, partial prerendering, hydration and its alternatives, CDN and edge delivery, HTTP caching headers, resource hints, speculation rules, and SEO.

  3. 03
    Performance Engineering

    Frontend performance for system design: Core Web Vitals (LCP, INP, CLS) and how they are measured, loading performance (bundles, code splitting, images, fonts, third parties), runtime performance (long tasks, scheduling, rendering cost, virtualization, workers), memory, performance budgets, and a debugging playbook.

  4. 04
    State and Data Management

    Where state lives and how data flows in a large frontend: server state vs client state vs URL state, query caches (stale-while-revalidate, deduplication, invalidation), normalization, pagination and infinite queries, optimistic updates and rollback, race conditions, forms and drafts, client persistence, and fetching architecture.

  5. 05
    Real-Time, Offline, and Sync

    Keeping a client live and usable on bad networks: polling, long polling, SSE, WebSockets, WebTransport and push, reconnect with backoff and resume, ordering and dedupe, backpressure, multi-tab connections, service workers and caching strategies, IndexedDB, offline-first with an outbox, background sync, conflict resolution, and CRDTs.

  6. 06
    Architecture and Scalability

    Scaling a frontend codebase and the teams behind it: layered and feature-sliced architecture, module boundaries, design systems and tokens, headless components, styling strategy, monorepos and build caching, micro-frontends (Module Federation, iframes, web components, edge composition), feature flags and experiments, migrations, and error containment.

  7. 07
    Security, Accessibility, and i18n

    The quality bars every frontend design must meet: browser security model (same-origin, CORS, XSS, CSRF, CSP, Trusted Types, cookies and tokens, clickjacking, supply chain), authentication flows (sessions, OAuth with PKCE, passkeys), accessibility (semantics, keyboard, focus, ARIA patterns, WCAG), and internationalization (ICU messages, Intl, RTL, locale loading).

  8. 08
    Testing, Observability, and Release

    Shipping a frontend safely: the testing pyramid and trophy (unit, component, integration, contract, end-to-end, visual regression, accessibility, performance), test strategy for flaky and async UI, RUM and error tracking, logging and tracing correlation, analytics design, CI/CD, progressive delivery (canary, flags, rollback), versioning, and incident response.

  9. 09
    UI Component Designs

    Worked frontend system designs for reusable UI components: typeahead, news feed with infinite scroll, image carousel, modal and toast overlay manager, data table, file uploader, nested comments, and date picker. Each covers requirements, architecture, state, API, performance, accessibility, and edge cases.

  10. 10
    Application Designs

    Worked frontend system designs for full applications: chat, collaborative document editor, e-commerce storefront and checkout, real-time analytics dashboard, video streaming UI, kanban board with drag and drop, maps and ride tracking, and photo library. Each covers requirements, architecture, data flow, real-time, performance, and trade-offs.

  11. 11
    Frontend System Design Interview Playbook

    Frontend system design interview rehearsal: what each level is expected to know, a 60-question bank with strong-answer checklists, a mock 45 minute walkthrough, 30 design prompts with key points, diagnose-the-problem scenarios, cheat sheets, common mistakes, and a 7-day study plan.

Reading Path

Pick Your Level

  • System Design covers backend HLD and LLD, which frontend designs lean on for APIs and real-time infrastructure.
  • React and Next.js cover the rendering model and the framework behind many designs.
  • Redux covers Redux Toolkit and RTK Query for client and server state.
  • JavaScript and TypeScript cover the language, event loop, and async patterns used throughout.
  • Server-Driven UI is a full frontend architecture case study.
  • Networking covers HTTP, TLS, DNS, and QUIC behind delivery and caching.
  • Backend covers auth, caching, queues, and API design behind the contracts you negotiate.

On this page