completefrontend

What's the difference between frontend and backend system design?

Both plan a system before anyone builds it, but they worry about different things. Here's how frontend and backend system design differ, with the same prompt answered both ways.

Title card: what's the difference between frontend and backend system design, with the backend covering servers, data, and scale and the frontend covering the browser, network, and device

Picture a restaurant. In the kitchen, someone plans how to cook 500 meals a night: where the stoves go, how food arrives from suppliers, and what happens when a fridge breaks. In the dining room, someone else plans how each guest gets their meal: the menu, the tables, how fast a plate reaches you, and whether someone in a wheelchair can get to their seat. Both are planning the same restaurant. They just look at it from different ends.

That's the difference between backend and frontend system design.

Backend system design plans the servers: how data is stored, processed, and served to millions of requests. Frontend system design plans the app in the browser: how its screens get data, keep it, show it fast, and keep working on a slow phone or a bad connection. Both start from the same product. They solve different problems inside it.

What does each one design?

Backend system design Frontend system design
The main question How do the servers handle the load? How does the app work on the user's device?
The parts Servers, databases, caches, queues, load balancers Pages, components, a client-side cache, service workers, a CDN
Where data lives Databases and caches on servers Memory, the URL, and browser storage like IndexedDB
What can fail A server, a database, the network between data centers A slow phone, a dropped connection, a tab left open for hours, two requests coming back in the wrong order
What "fast" means Response time and requests per second How fast the page shows up, answers clicks, and stays still
The interfaces APIs between services The API the screens call, and each component's props and events

The last row is where the two meet. The backend builds the API, and the frontend decides what it needs from it. A good frontend design says exactly what each screen asks for and what it gets back.

For the frontend, "fast" has names: Core Web Vitals measure how quickly the main content shows, how quickly the page answers a click, and how still it stays while it loads.

How is the interview different?

From the outside, both rounds look alike. You get a vague prompt, 45 to 60 minutes, and a whiteboard or a shared document. There's no single right answer, and you're judged on how you think.

Where the time goes is different:

  • A backend round usually starts with scale: how many users, how many requests a second, and how much data. Then come databases, how to split data across machines, caches, and queues.
  • A frontend round starts with users and devices: who uses it, on what, how much a screen shows, and whether it must work offline. Then come the parts in the browser, the data the client keeps, the API, and deep dives into rendering, performance, and accessibility.

Frontend rounds use numbers too, just different ones: how many items a list holds, how heavy a page is, and how much memory a cache takes. Back-of-the-envelope numbers for frontend covers the ones worth knowing.

Most people answer a frontend round with a framework. On CompleteFrontend it's called RADIO: Requirements, Architecture, Data model, Interface, and Optimizations. The RADIO framework explains each step and how long to spend on it.

What does the same prompt look like on each side?

Take "Design a news feed". Here's where each round spends its time.

The backend answer is about building each person's feed. When someone posts, do you copy the post into every follower's feed right away, or build each feed when someone opens the app? Copying makes reading fast but makes posting slow for someone with millions of followers. Building on demand is the opposite. Then come storage for posts and photos, and the service that ranks them.

The frontend answer is about the screen:

  • How does the first screen of posts show up fast? Does the server send ready-made HTML, or does the browser build it? See choosing a rendering strategy.
  • How does the next batch load as you scroll? Usually with a cursor, a marker that tells the server where the last batch ended. See pagination.
  • How does the page stay smooth with 2,000 posts in it? By rendering only the ones on screen. See virtualization.
  • When you tap like, does the heart fill in at once, before the server answers? And what if the server says no? See optimistic updates.
  • How do new posts arrive without the page jumping under your finger?
  • Can someone use the whole feed with a keyboard or a screen reader?
Two columns answering "Design a news feed": the backend side builds and stores feeds and ranks posts, the frontend side loads the first screen fast, pages with a cursor, renders only what's on screen, fills in likes at once, and works with a keyboard
The same prompt, answered from each end of the wire.

Same product, two very different answers, and each is right for its round. The full frontend answer is in Design a news feed.

Do frontend engineers need to know backend system design?

You need the part of the backend the frontend touches. That means designing the API your screens call: what each request returns, how a long list is split into batches, how errors come back, and how updates reach the browser.

You don't need to design the database. If the interviewer asks how posts are stored, say what you'd need from the backend team, such as "an endpoint that returns 20 posts after a cursor", and steer back to the browser. A frontend round has a lot to cover, and minutes spent on database tables are minutes you can't spend on the parts you're scored on.

REST API design and backend for frontend cover the server side a frontend engineer should know.

Which one should you prepare for?

Ask your recruiter which round you'll get. Many companies give frontend engineers a frontend round, and some give everyone the same general one. If you can't find out, prepare for the frontend round first, and learn enough backend to sketch the servers in a few boxes.

To start on the frontend side, the frontend system design course teaches the fundamentals step by step, and the frontend system design interview questions are each answered in full, from one component to a whole app.

Written by Shrikanth PS

Senior Software Engineer at Microsoft, working on Copilot Enterprise, with more than nine years in frontend engineering.