Skip to content

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.

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.
  • 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.

The material moves from concepts to practice. Each section has its own entry in the sidebar; here is where each one starts.

SectionWhat you will learnStart with
Start hereHow to study, the skill map, the interview framework, estimationStudy plan
Fundamentals and trade-offsScalability, latency, CAP, consistency, availability, consensusPerformance vs scalability
Networking and trafficDNS, CDNs, load balancers, gatewaysDNS
Application architectureMonoliths, microservices, service discovery, LLM-powered systemsMonolith and microservices
Databases and storageSQL, replication, sharding, NoSQL, object storageRelational databases
CachingCache layers, update and eviction strategiesCaching layers
Asynchronism and messagingQueues, back pressure, event streamingQueues and back pressure
Communication and APIsHTTP, TCP and UDP, RPC and REST, API stylesHTTP
Reliability and securityRate limiting, resilience, observability, securityRate limiting
Numbers and referenceLatency, powers of two, availability nines, flashcards with Anki exportLatency numbers
Practice: system designEight end-to-end case studies and a list of more questionsURL shortener and Pastebin
Practice: object-oriented designSix class-design exercises in PythonHash map
Real-world systemsPapers, company architectures, blogsFoundational papers

The About section holds the credits and license and a guide to contributing.

Topic pages share one layout so you always know where to look:

  1. A two- or three-sentence opening and a TL;DR box you can memorise.
  2. The mechanism, usually with a diagram and concrete numbers.
  3. A Trade-offs section when there is a real choice to make.
  4. An In the interview box: what gets probed, typical follow-ups, common mistakes.
  5. Further reading (checked links) and Related topics.
  6. 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.

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.

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.

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.

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.