跳到主要内容

Front end system design - applications

caution

This page is still work in progress.

Examples

  • Social network
  • Video watching website
  • Chat application
  • Mail application

Framework

  1. Requirements clarifications/alignment
  2. Architecture
  3. Data model
  4. API design
  5. Deep dive
    • User experience (UX)
    • Performance
    • Accessibility (a11y)
    • Internationalization (i18n)
    • Multi-device support
    • Security

Requirements clarification

Every system design interview should start with clarifying requirements about the question, which is usually left vague intentionally. Some considerations:

  • What devices should the system support? Desktop web, mobile web, etc
  • What's the primary device that users will access the system on?
  • Which browsers should we support?
  • Do we need to support internationalization?
  • Does the app need to work offline?

Architecture

Architecture for front end interviews are typically focused on the client-side architecture, and not on large scale distributed systems where databases, load balancers and servers are involved.

For applications, common architectures include Model-View-Controller, Model-View-ViewModel, Flux, N-tier (where data tier is on the client) etc.

Data model

Client app state, which is a combination of server state (database) and true client state (non-persisted to the server).

TBD.

API design

API design for applications will refer to the HTTP/network API parameters and the shape of the responses.

TBD.

Deep dives

With the architectural basics of the application covered, we can dive into specific areas which the application might need special attention to. Note that there almost definitely won't be enough time to cover every area, and not every area will be very relevant to the component at hand.

Showing knowledge about these areas and being able to dive deep into them are traits of senior developers.

  • User experience (UX)
  • Performance
  • Accessibility (a11y)
  • Internationalization (i18n)
  • Multi-device support
  • Security

Helpful articles

Many companies blog about their technical challenges in the front end domain and these are great content to learn more about designing front end systems.