Core Concepts
Introduction
Learn how to lead an open-ended backend design interview and choose where to go deeper.
A backend system design interview is an open-ended conversation about how you would build a service. The prompt gives you a starting point. You and the interviewer agree on what the service needs to do, then you have a lot of room to steer. You can choose which parts to sketch quickly and which are worth spending time on. The interviewer may ask you to go deeper or change an assumption along the way.
Interviewers want to see both breadth and depth. Breadth means you can explain how the service works end to end and spot which parts matter most. Depth means you can pick one of those parts and explain how it works, why you chose it, and what happens when it fails. Your knowledge of distributed systems gives you options. Your reasoning shows up in the questions you ask, the trade-offs you make explicit, and how you adapt when the problem changes.
Lead the discussion
The course walkthroughs use four phases. Use them as checkpoints you can return to when the discussion changes.
- Requirements. Agree on the user actions to support and the limits that could change the design. Ask how quickly the service needs to respond or what users should still be able to do during a failure. Say what you are assuming and what you will defer.
- API and data. Show what a client sends and what it receives. Name the records the service needs to store and what identifies a record on the next request.
- High-level design. Trace a core request from the client through the services that handle it and back. Show where each service reads or writes data. If reads and writes take different paths, sketch both before exploring either in depth.
- Deep dives. Name a decision worth more time and say which requirement makes it matter. Explain how your design handles the usual case, then follow it through the load or failure that could change your choice.
Choose where to go deeper
Use a requirement to ask a question you can answer with the design. If a confirmed write has to survive a restart, when can the service tell the client it succeeded? A restart can erase a write held only in the service's memory. Save it somewhere that survives the restart before sending the confirmation.
If your service calls another service to answer a request, how long should it wait, and what can it return when the wait ends? Follow the request far enough to show which component makes that decision and what the user experiences.
Give the interviewer a reason for the path you pick. "I'd go deeper on the write path because a confirmed write has to survive a restart." If they change the assumption, say what changed and follow that part of the design again. Use a quick estimate when the answer could settle a choice, such as whether one running copy of the service can handle the expected traffic.
Work through your first design
For the guided route, use Estimations to turn traffic assumptions into load, then Request Path to follow a request from the browser to the application. You can also go straight to the free URL Shortener walkthrough. Try tracing link creation and redirects yourself, then choose one design decision to examine before reading the deep dives.
Used in
- URL Shortener - sketch the link-creation and redirect paths, then explore what happens when one link gets popular.
- ChatGPT - trace an accepted message to a streamed reply, then explore ordering, retries, and recovery.
Done reading? Mark it so it sticks in your dashboard.