system-design-primer

donnemartin

A study guide for designing scalable systems, covering caching, load balancing, databases, queues and consistency trade-offs, with worked interview problems and Anki flashcards. Widely used to prepare for system design interviews.

PythonCreated

What is donnemartin/system-design-primer?

The System Design Primer is a free, open-source study guide for designing large-scale systems, aimed at engineers preparing for system design interviews and at anyone who wants to understand how big services are built. It collects the core ideas in one structured place: scalability trade-offs, load balancing, caching, databases and replication, asynchronous processing, and how components fit together in real architectures.

The guide walks through worked examples of common interview questions, such as designing a URL shortener or a social feed, showing how to reason about requirements, estimates and bottlenecks. It links to further reading and talks, and it has been translated into many languages by volunteers.

It is most useful for software engineers preparing for interviews at companies that test architecture, and for developers who want a broad, organised introduction before studying specific systems in depth. Because it is a learning resource rather than software, the value lies in the reasoning it teaches.

designdesign-patternsdesign-systemdevelopmentinterviewinterview-practiceinterview-questionsprogramming