Skip to main content
Back to track
Frontend Engineer

System design

9 classic design questions, each answered with the same framework: requirements, architecture, data model, API and deep dives. Try sketching your own design before reading the answer.

01

Design an autocomplete (typeahead) component

MediumAutocompleteDebounceCachingAccessibility

Design an autocomplete (typeahead) component: as the user types into a search box, a list of suggestions appears below it, and they can pick one with the mouse or the keyboard.

A typical framing: "Design the search box at the top of an e-commerce site. Suggestions come from a backend API. It should feel instant, work with a keyboard and a screen reader, and be reusable by other teams for other data sources."

02

Design a news feed (like Facebook or X)

MediumInfinite scrollPaginationVirtualizationOptimistic updates

Design the news feed of a social network, like Facebook, LinkedIn or X: an endless list of posts from people and pages the user follows, where they can like and comment.

A typical framing: "Users open the app and scroll through hundreds of posts. Posts have text, images and videos. Users can like, comment and create posts. Focus on the web client."

03

Design a design system for several product teams

MediumDesign systemDesign tokensThemingComponent API

Design a design system (a shared component library) used by several product teams: what goes into it, how it's built, how teams consume it, and how it evolves without breaking them.

A typical framing: "We have five product teams building different apps, and every team has its own buttons, colors and modals. Products look inconsistent and we keep rebuilding the same components. You're the first engineer on the new design system team. What do you build, and how?"

04

Design the frontend of an e-commerce site: product listing and search, the product page, the cart, and checkout.

A typical framing: "Design the web storefront of an online retailer with 200,000 products. Most traffic comes from Google and from mobile. The business cares about conversion, so pages must load fast and checkout must never lose an order."

05

Design a real-time monitoring dashboard: summary cards with key metrics, charts over time, a live feed of alerts, and a table of tens of thousands of findings that users filter, sort and drill into.

A typical framing: "Operations teams keep this dashboard open all day. New findings and score changes should show up within seconds, without a page refresh. The findings table can hold 50,000 rows. Different users see different data depending on their permissions."

06

Design a chat app (like WhatsApp Web or Slack)

HardWebSocketsReal-timeOfflineMessage ordering

Design the web client of a chat app, like WhatsApp Web, Slack or Messenger: a list of conversations, a message thread, real-time delivery, and typing and read indicators.

A typical framing: "Users have hundreds of conversations, some with years of history. Messages must arrive instantly, never get lost or duplicated, and appear in the right order. The app should keep working on a flaky mobile connection."

07

Design the UI for a streaming AI agent (like ChatGPT or Claude)

HardLLM streamingSSEAI agentsMarkdown rendering

Design the UI for an AI agent like ChatGPT, Claude or an in-product copilot: the user asks a question, the answer streams in token by token, and the agent may call tools, show its progress, and run for minutes on bigger tasks.

A typical framing: "Users chat with an assistant that can look up data and take actions. Answers should start appearing within a second. Some tasks take several minutes, and users should be able to stop them, approve risky actions, and come back later to see the result."

08

Design a collaborative document editor (like Google Docs)

HardCRDTOperational transformationReal-timePresence

Design a collaborative document editor like Google Docs or Notion: several people edit the same document at the same time, see each other's cursors, and everyone ends up with the same document.

A typical framing: "Up to 50 people can edit a document at once. Edits from others appear within a fraction of a second. Users can keep typing during short network drops, and the document must never end up different for different people."

09

Design an interactive graph visualization that shows thousands of connected entities, for example cloud resources and their dependencies, services calling each other, or people in an organization. Users pan, zoom, search, click a node to see its details, and expand its neighbors.

A typical framing: "An infrastructure map shows every resource in a company's cloud and how they depend on each other: from a few hundred nodes for a small team to 20,000+ for a large enterprise. It should stay smooth on a normal laptop, help users find what matters, and be usable by people who can't use a mouse."