The best way to learn system design is in five stages: the fundamentals underneath every system (networking and databases), the building blocks made from them (caches, queues, load balancers, replicas), estimation, real designs, and then breaking those designs to see where they fail. Almost everything you need to read is available online at no cost, from MIT's distributed systems course to Google's Site Reliability Engineering book. What reading cannot give you is the feel for what happens under load, and that comes from designing something, estimating it, and watching it fail.
Key takeaways
- Learn in order: fundamentals, building blocks, estimation, real designs, failure. Each stage depends on the one before it.
- You do not need data structures and algorithms (DSA) to start learning system design, but interviews at companies like Amazon test coding and design separately, so interview candidates need both.
- There is no credible data on how long it takes. Estimates online come from course sellers. Plan by stages instead of weeks.
- Practise by designing a system, writing down its numbers, and then pushing it past its limit. Knowing why a design fails teaches more than knowing the right diagram.
What is system design, and who should learn it?
System design is deciding how the parts of a software system fit together so it handles its real load: which services exist, where data lives, how requests flow, and what happens when something slows down or breaks. Microsoft's interview guidance lists the territory: "Resiliency, high availability, auto-scaling, replication, CAP theory, partitioning, all may be included", and says "Knowledge of distributed systems, SOA, and n-tiered software architecture is very important" (Microsoft Careers).
Anyone who builds backend software benefits from it, not only senior engineers. Freshers and students meet the same problems the first time their app gets real traffic: a slow database query that holds up every request behind it, or a retry loop that makes an outage worse. Interview loops differ by company and level, and the official pages we found do not say system design is reserved for senior roles. Amazon publishes separate prep pages per level, and its SDE II page says to "Expect at least one question on software systems design" (Amazon SDE II interview prep).
Do you need DSA before learning system design?
No, not to start learning. System design rests on networking, databases and how components behave under load, not on algorithm puzzles. You can learn caching, queueing and replication without being able to reverse a linked list.
For interviews, the answer changes, because companies test both. Amazon says "Most technical interviews require you to perform coding and system design white boarding exercises", and lists data structures and algorithms as separate topics from distributed computing (Amazon interview topics). Its SDE II page has separate sections for system design and for coding, where it expects "syntactically correct code". So if you are preparing for interviews, learn both in parallel; if you are learning to build better systems, start with design.
Stage 1: Learn the fundamentals
Start with the layers every request passes through: DNS, TCP and HTTP, then how a database stores and finds data (indexes, transactions, replication). You do not need to master them, but you need enough to answer "what happens between a click and a database read?" without guessing.
Free material that covers this well:
- Martin Kleppmann's distributed systems course. An 8-lecture Cambridge undergraduate course whose videos and notes he made "available publicly under a creative commons CC BY-SA license" (Kleppmann, 2020; lecture notes PDF).
- MIT 6.5840 Distributed Systems. The course page publishes its schedule, lecture notes, the papers it reads (such as the 2003 Google File System paper) and five programming labs (MIT 6.5840, Spring 2026). The labs are among the most demanding free practice available, and worth it once the basics are in place.
Stage 2: Learn the building blocks
Next, learn the components that most designs are assembled from, and the one question each answers:
| Building block | The question it answers | Typical failure |
|---|---|---|
| Load balancer | How do requests spread across servers? | One slow server still receives its share |
| Cache | How do we avoid repeating expensive reads? | Hit rate drops and the database takes the full load |
| Message queue | How do we absorb bursts and decouple services? | Backlog grows faster than consumers drain it |
| Database replica | How do we scale reads and survive a node loss? | Replicas lag, so reads return stale data |
| Rate limiter | How do we protect a service from too much traffic? | Limits set too high to help, or too low for real users |
Learn each block by its failure mode, not just its purpose. What happens when a message queue fills up works through the queue row in detail, and the rate limiter template covers the last one.
Stage 3: Learn to estimate
Estimation turns a design from a drawing into a claim you can check. The System Design Primer notes that "You'll sometimes be asked to do 'back-of-the-envelope' estimates" (System Design Primer), and Google's SRE book treats the same skill as capacity planning: "ensuring that there is sufficient capacity and redundancy to serve projected future demand with the required availability" (Site Reliability Engineering, Introduction).
Three habits cover most estimates:
- Convert per day or per month into per second. 500 million new links a month (30 days, 2,592,000 seconds) is 500,000,000 ÷ 2,592,000 ≈ 193 writes a second. At 100 reads per write, that is about 19,300 reads a second on average, and peaks run well above the average.
- Know rough latencies. The gaps between memory, disk and network are so large that they decide most designs.
- Use Little's Law. The number of requests in flight equals the arrival rate times the time each one takes (L = λW). At the template's 50,000-a-second peak with no cache in front, every read reaches the database, and at 25 ms per query 50,000 × 0.025 = 1,250 queries are in progress at once, and each needs a database connection, so that is the number to compare with the connection pool size. The URL shortener template is built around that calculation.
A main-memory fetch takes 100 ns and a transatlantic round trip takes 150 ms, a factor of 1.5 million (Norvig). That is why caches sit close to the code that reads them, and why a design that crosses an ocean on every request cannot be fast. Utilisation matters as much as raw latency, because waiting time climbs steeply as a component gets busy; how to find the bottleneck in a system design works through that with numbers.
Stage 4: Study real designs
With the blocks and the arithmetic in hand, study complete systems and ask of each one: what is the load, which component carries most of it, and what breaks first? Reading the design is only half of it. Redo its estimates yourself and check they hold.
Each of these designs teaches a different idea:
| Design | What it teaches |
|---|---|
| URL shortener | Read-heavy caching and connection pool sizing |
| Chat service | Long-lived WebSocket connections and routing each message to the right server |
| News feed | Fan-out on write versus fan-out on read |
| Notification system | Priority queues, retries and third-party limits |
| Payment system | Idempotency, double-entry ledgers and sagas |
| Web crawler | Politeness queues and deduplication at scale |
All 10 system design templates follow the same structure: requirements, capacity numbers, components and failure modes. For how large companies actually run their systems, the Amazon Builders' Library collects "in-depth articles from the most senior engineers and technical leaders who build and operate systems at Amazon" (Amazon Builders' Library). How to design a notification system at scale is a worked example of reading a design this way.
Stage 5: Break your designs
The last stage is the one most learning paths skip: test the design under conditions it was not drawn for. Triple the traffic. Kill the cache. Slow the database. Add retries and watch whether they help or make things worse. The goal is to predict what fails before it does, and then confirm it.
You can do this on paper by redoing the arithmetic for each scenario, or run it. StackMonkey is a free browser-based simulator for exactly this step: you draw the design, send traffic through it, and see which component gives out first. No account is needed to build and run a design, and each template above opens in it with its numbers already set. The engine's steady-state queueing results are checked against textbook formulas, including Little's Law; failure scenarios such as retries and cache loss are tested for behaviour, since they have no closed form.
Whatever broke tells you which fundamentals to revisit. That loop, from failure back to fundamentals, is what turns reading into understanding.
How long does it take to learn system design?
There is no reliable data. We found no survey or study of how long engineers take; the estimates online, from four weeks to six months, come from companies that sell system design courses.
A more useful way to plan is by stage, since each stage has a clear finish line:
- Fundamentals are done when you can explain what happens between a click and a database read.
- Building blocks are done when you can name each block's main failure.
- Estimation is done when you can turn a daily volume into requests a second and connections in flight without notes.
- Real designs are done when you can redo a design's numbers and find its bottleneck.
- Breaking designs never really ends; it is how working engineers keep learning.
As a rough guide, and this is our judgement rather than data: an engineer who already builds backend services can work through the first four stages in a few focused weeks, and someone starting from scratch should expect a few months, mostly in stages 1 and 2.
How to learn system design for interviews
Interviews test the same knowledge under time pressure, with an interviewer probing your choices. Amazon's SDE II page says "Your interviewer will ask questions related to your design" and that "you should ask questions to complete and validate your design", and it lists what it looks for: "Practicality," "Accuracy," "Efficiency," "Reliability," "Optimization," "Scalability" (Amazon SDE II interview prep).
A structure that covers those points:
- Clarify requirements. Ask who uses it, how much, and what must never go wrong.
- Estimate. Requests a second, storage, and the peak.
- Sketch the high-level design. The main components and how a request flows through them.
- Go deep on the hardest part. Usually the component carrying the most load or the strictest guarantee.
- Name the trade-offs and failure modes. What breaks first, and what you would do about it.
Practise drawing in the format you will be given. Meta's hiring page says "Design interviews will be conducted in CoderPad with Mermaid Markdown" (Meta hiring process), so it helps to be comfortable sketching a design as text, not only on a whiteboard.
What are the best books and free resources to learn system design?
| Resource | Type | Best for |
|---|---|---|
| Designing Data-Intensive Applications, 2nd edition, Martin Kleppmann and Chris Riccomini (O'Reilly, 2026) | Book (paid) | Depth on storage, replication and streams (announcement) |
| Site Reliability Engineering (Google) | Book, readable online | Running systems at scale, capacity planning (sre.google) |
| Kleppmann's Cambridge lecture notes and videos | Course, CC BY-SA | Distributed systems theory, from the start |
| MIT 6.5840 | Course with labs | Building distributed systems yourself |
| The System Design Primer | Free GitHub guide | Interview topics and estimation tables (GitHub) |
| Amazon Builders' Library | Articles | How large systems are run in practice |
| Alex Xu's System Design Interview volumes | Books (paid) | Worked interview-style walkthroughs |
If you read one book, make it Designing Data-Intensive Applications: it explains why systems are built the way they are, which outlasts any list of interview questions. The System Design Primer is the quickest free overview, and its own description is "Learn how to design large-scale systems. Prep for the system design interview."
A checklist for learning system design
- Explain the path of a request from browser to database without notes.
- Name each building block's main failure mode.
- Convert any daily or monthly volume into requests a second.
- Use Little's Law to size a connection or thread pool.
- Redo the estimates of at least three real designs and find their bottlenecks.
- Break each design: a traffic spike, a cache failure, a slow dependency.
- For interviews, practise the five-step structure out loud, and keep coding practice going alongside.
About this article
Written by the team that builds StackMonkey. Interview guidance is quoted from the companies' own careers pages and resource descriptions from their official pages, as of November 2026; interview processes change, so check the current pages. The estimation examples use figures from the site's URL shortener template, and the timeline in "How long does it take" is our judgement, not measured data. If you find an error, email [email protected] and we will correct it. More articles are on the blog, and more about the project is on the about page.
Sources
- Microsoft Careers: Technical interviewing.
- Amazon Jobs: SDE II interview prep and Amazon software development interview topics.
- Meta Careers: Hiring process.
- Martin Kleppmann, "Distributed systems and elliptic curve cryptography", 2020, and the Cambridge lecture notes.
- Martin Kleppmann, "Designing Data-Intensive Applications, 2nd Edition", 2026.
- MIT: 6.5840 Distributed Systems, Spring 2026.
- Google: Site Reliability Engineering books and the SRE book introduction.
- Donne Martin: The System Design Primer.
- Amazon: The Amazon Builders' Library.
- Peter Norvig: Teach Yourself Programming in Ten Years.
