Lesson 187 of 296
Front-end system design method
What you will learn
- What a front-end system design round is
- A step-by-step method (RADIO)
- What to cover in each step
- Common topics interviewers expect
- Mistakes to avoid
On this page
What is the round?
In a front-end system design interview you are asked to design a feature or a product, for example "Design a news feed", "Design an autocomplete", "Design Google Docs" or "Design an image carousel component". It usually lasts 45 to 60 minutes. You talk, draw boxes and write small code snippets. There is no single right answer: the interviewer wants to see structured thinking, trade-offs, and knowledge of performance, accessibility and user experience.
It is different from a back-end system design round (Part 18), which focuses on servers, databases and scaling. Here the focus is the client: components, state, data fetching, rendering and the API between client and server.
The RADIO method
A widely used structure is RADIO:
| Step | Question | Suggested time |
|---|---|---|
| Requirements | What exactly are we building? | About 5 minutes |
| Architecture | What are the main parts and how do they talk? | About 10 minutes |
| Data model | What data does each part hold? | About 5 minutes |
| Interface (API) | What does the client ask the server, and what do components expose? | About 10 minutes |
| Optimisations | How do we make it fast, accessible, reliable? | The rest |
Say the plan at the start: "I will clarify requirements, sketch the architecture, define the data model and API, then go deep on optimisations." Interviewers like that.
Step 1: Requirements
Ask questions; do not assume. Write the answers down.
Functional requirements (what it does):
- Who are the users? What are the main actions?
- Which features are in scope? (For a feed: post, like, comment? Images? Video?)
- Which devices: desktop, mobile, both?
Non-functional requirements (how well it does it):
- Performance: how much data? How fast must it feel?
- Offline support? Real-time updates?
- Accessibility (always yes), internationalisation (several languages, right-to-left)?
- SEO needed (public pages) or not (behind login)?
Agree on a small core scope first; mention extras for later.
Step 2: Architecture
Draw the main components and how data flows between them. For a news feed:
Server API
↑↓
Data layer / cache (TanStack Query or a store)
↑↓
Feed (container)
├─ Composer (new post form)
└─ FeedList
└─ FeedItem
├─ Media
└─ Actions (like, comment, share)Explain the responsibility of each part. Mention the rendering strategy (Lesson 183): server-rendered for SEO and fast first load, or client-rendered behind login.
Step 3: Data model
Which data lives where:
| Data | Where | Example |
|---|---|---|
| Server data | Cache from the API | Posts, users, comments |
| Client UI state | Component state | Is the comment box open? Draft text |
| Shared client state | Context or store | Current user, theme |
| URL state | Query string | Search term, filters, current tab |
Write the main types:
type FeedPost = {
id: string;
author: { id: string; name: string; avatarUrl: string };
text: string;
media?: { url: string; width: number; height: number; alt: string }[];
createdAt: string;
likeCount: number;
likedByMe: boolean;
};Normalising data (storing each entity once by ID, Lesson 20 maps) helps when the same user or post appears in many places.
Step 4: Interface (API)
Server API the client needs:
GET /api/feed?cursor=abc&limit=20 → { posts: FeedPost[], nextCursor: string | null }
POST /api/posts → FeedPost
POST /api/posts/:id/like → { likeCount, likedByMe }Discuss: REST or GraphQL; cursor pagination rather than page numbers for feeds (new posts would shift page numbers, Lesson 220); real-time updates by polling, Server-Sent Events or WebSockets (Lesson 205).
Component API: the props of key components, for example <Autocomplete fetchSuggestions onSelect debounceMs minChars />.
Step 5: Optimisations and deep dives
Choose the areas that matter most for this product, and go deep:
| Area | Ideas |
|---|---|
| Performance | Code splitting, lazy loading images, virtualised lists, debouncing, caching, prefetching, server rendering for first load |
| Network | Pagination, request de-duplication, cancelling stale requests, retries with backoff, compression |
| User experience | Loading skeletons, optimistic updates, empty and error states, keeping scroll position |
| Accessibility | Semantic HTML, keyboard support, focus management, ARIA live regions, colour contrast, reduced motion |
| Reliability | Error boundaries, offline handling, retry |
| Security | Escaping user content (XSS), CSRF protection, no secrets in the client |
| Internationalisation | Translations, date and number formats, right-to-left layout |
| Observability | Error tracking, Core Web Vitals monitoring |
Optimistic update (often asked): when the user clicks "like", update the UI immediately, send the request, and roll back if it fails. It makes the app feel instant.
Mistakes to avoid
- Jumping into code before agreeing requirements.
- Designing only the happy path (forget loading, error, empty).
- Forgetting accessibility; mention it in every design.
- Going silent; think out loud.
- Listing buzzwords without trade-offs. Say why: "I'd use cursor pagination because new posts at the top would shift offsets."
- Over-engineering a simple widget.
How to say it in an interview
"For front-end system design I follow RADIO: I clarify functional and non-functional requirements and agree a core scope, sketch the component architecture and rendering strategy, define the data model and where each kind of state lives, design the server API and key component props, then go deep on optimisations: performance, network, user experience, accessibility and reliability. I always cover loading, error and empty states, and explain the trade-off behind each choice."
Key words
| Word | Meaning |
|---|---|
| Front-end system design | Designing a client-side feature or product in an interview |
| RADIO | Requirements, Architecture, Data model, Interface, Optimisations |
| Functional requirement | What the system must do |
| Non-functional requirement | How well it must do it (speed, accessibility) |
| Normalisation | Storing each entity once, referenced by ID |
| Optimistic update | Updating the UI before the server confirms |
Now prove it
This lesson is complete when you pass the quiz and all three practice levels.