Introduction
System design is the craft of turning a vague need, such as “let people share short links” or “show each user a feed”, into a set of services, data stores and network paths that keeps working when traffic grows a thousandfold and parts of it fail. This guide teaches the building blocks of that craft and a repeatable way to apply them, both at work and in an interview.
Why learn system design
Section titled “Why learn system design”Most engineers spend their days inside one service, yet the hardest production problems live between services: a cache that hides a slow query until it expires, a retry storm that turns a blip into an outage, a database that was fine at one million rows and not at one billion. Knowing how the pieces behave under load lets you:
- Make better day-to-day decisions. Choosing an index, a queue or a timeout is a small design decision with large consequences.
- Read other people’s architectures critically. Engineering blog posts and design documents become easier to evaluate when you know the usual trade-offs.
- Grow into senior roles. Beyond a certain level, the work is less about writing code and more about choosing what to build and explaining why.
- Pass the interview. Many tech companies include one or more system design rounds for mid-level and senior candidates, and the round often decides the level of the offer.
Who this is for
Section titled “Who this is for”- Engineers who are comfortable with one backend language and SQL but have not yet designed a system end to end.
- Candidates preparing for system design interviews within a few weeks or months.
- Experienced engineers who want a compact, up-to-date refresher on a topic before a design review.
- Russian-speaking readers who prefer to study in Russian: every page has a Russian twin, and the language switcher keeps you on the same page.
You do not need to know everything here. Interviewers expect breadth across the core topics and depth in a few, and what counts as “enough” depends on your level and the role.
How this site is organised
Section titled “How this site is organised”The material moves from concepts to practice. Each section has its own entry in the sidebar; here is where each one starts.
| Section | What you will learn | Start with |
|---|---|---|
| Start here | How to study, the skill map, the interview framework, estimation | Study plan |
| Fundamentals and trade-offs | Scalability, latency, CAP, consistency, availability, consensus | Performance vs scalability |
| Networking and traffic | DNS, CDNs, load balancers, gateways | DNS |
| Application architecture | Monoliths, microservices, service discovery, LLM-powered systems | Monolith and microservices |
| Databases and storage | SQL, replication, sharding, NoSQL, object storage | Relational databases |
| Caching | Cache layers, update and eviction strategies | Caching layers |
| Asynchronism and messaging | Queues, back pressure, event streaming | Queues and back pressure |
| Communication and APIs | HTTP, TCP and UDP, RPC and REST, API styles | HTTP |
| Reliability and security | Rate limiting, resilience, observability, security | Rate limiting |
| Numbers and reference | Latency, powers of two, availability nines, flashcards with Anki export | Latency numbers |
| Practice: system design | Eight end-to-end case studies and a list of more questions | URL shortener and Pastebin |
| Practice: object-oriented design | Six class-design exercises in Python | Hash map |
| Real-world systems | Papers, company architectures, blogs | Foundational papers |
The About section holds the credits and license and a guide to contributing.
How a page is built
Section titled “How a page is built”Topic pages share one layout so you always know where to look:
- A two- or three-sentence opening and a TL;DR box you can memorise.
- The mechanism, usually with a diagram and concrete numbers.
- A Trade-offs section when there is a real choice to make.
- An In the interview box: what gets probed, typical follow-ups, common mistakes.
- Further reading (checked links) and Related topics.
- The topic’s place on the skill map: what to read first, what it leads to and a Mark as learned button.
Case studies follow the classic four-step interview flow instead: requirements and estimates, high-level design, core components, scaling, and a final section on how a team would build the system in 2026.
What changed compared to the original
Section titled “What changed compared to the original”This site is an adaptation of The System Design Primer by Donne Martin, an open-source guide published under CC BY 4.0. The original collected the topics, the case studies and many links into one long README. We kept its map of topics and rebuilt everything else:
- Restructured into 13 sections with short pages, a sidebar, search and previous/next navigation.
- Rewritten in new words, with explanations of why a mechanism works, not only what it is.
- Updated for 2026. The original text was mostly written from 2017 to 2019. Pages now cover what changed since then where it affects design decisions: managed cloud databases and queues, HTTP/3 and QUIC, Kafka-style logs, distributed SQL, Valkey alongside Redis, edge compute, SLOs and error budgets.
- Expanded. New pages on object storage, event streaming, rate limiting, resilience patterns, observability, API styles and service meshes, consensus and coordination, and LLM-powered systems.
- Interactive. Calculators let you change the inputs of an estimate and see the result immediately. Flashcards with spaced repetition replace the original’s Anki decks, and can be exported to Anki.
- Bilingual. Every page exists in English and Russian.
- Re-checked links. Many links in the original have rotted; further-reading lists here were verified when written.
See Credits and license for the full attribution.
Using this site for interview prep
Section titled “Using this site for interview prep”A design round is a 45–60-minute conversation in which you lead an open-ended problem to a reasonable design. Four pages set you up for it:
- Study plan: what to read in what order, for a timeline of 1–2 weeks, 3–6 weeks or 2–3 months.
- Skill map: every topic on one map with what it needs first and what it leads to, your progress, the topics you skipped and what to read next.
- How to approach a system design interview: a seven-step framework with a time budget, the questions to ask and a one-screen checklist.
- Back-of-the-envelope estimation: how to size traffic, storage and bandwidth in two minutes, with the reference tables one click away.
Then practise. Pick a case study, set a timer, talk through your design out loud (or with a friend playing the interviewer), and only then compare it with the written solution. Reading solutions without attempting them first feels productive but transfers poorly to the real thing.
Everything is a trade-off
Section titled “Everything is a trade-off”If you remember one idea from this guide, make it this one. Adding a cache cuts latency but creates a consistency problem. Sharding a database removes a write bottleneck but makes cross-shard queries and transactions harder. Asynchronous processing absorbs spikes but delays results and complicates error handling. A design is good when its trade-offs match the requirements, and a strong answer says out loud which side of each trade-off it chose and why.
Further reading
Section titled “Further reading”- The System Design Primer: the original guide this site adapts.
- Designing Data-Intensive Applications by Martin Kleppmann (the second edition, 2026, is co-written with Chris Riccomini): the standard book-length companion to the data topics here.
- Google SRE books: Google’s books on running large systems reliably; three of them are free to read online.
- Non-Abstract Large System Design: Google’s worked method for turning requirements into a sized design.
Related topics
Section titled “Related topics”- Study plan: the next page, choosing a route through the material.
- Performance vs scalability: the first concept page.
- Latency numbers: the numbers behind every estimate.
Based on The System Design Primer by Donne Martin (CC BY 4.0). Restructured, rewritten and updated; site content is licensed under CC BY 4.0.