donnemartin /system-design-primer

Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.

★ 377,961⑂ 59,291👁 6,888⑃ 754● 418▤ 0
PythonNOASSERTIONCreated 2017-02-26
+97
Daily
+572
Weekly
377,961
stars
59,291
forks
6,888
watchers
754
prs
418
issues
0
releases

README

English ∙ 日本語 ∙ 简体中文 ∙ 繁體中文 | العَرَبِيَّة‎ ∙ বাংলা ∙ Português do Brasil ∙ Deutsch ∙ ελληνικά ∙ עברית ∙ Italiano ∙ 한국어 ∙ فارسی ∙ Polski ∙ русский язык ∙ Español ∙ ภาษาไทย ∙ Türkçe ∙ tiếng Việt ∙ Français | Add Translation

Help translate this guide!

 The System Design Primer


  
  


 Motivation

 Learn how to design large-scale systems.

 Prep for the system design interview.

 Learn how to design large-scale systems

Learning how to design scalable systems will help you become a better engineer.

System design is a broad topic.  There are a vast number of resources scattered throughout the web on system design principles.

This repo is an organized collection of resources to help you learn how to build systems at scale.

 Learn from the open source community

This is a continually updated, open source project.

Contributions are welcome!

 Prep for the system design interview

In addition to coding interviews, system design is a required component of the technical interview process at many tech companies.

Practice common system design interview questions and compare your results with sample solutions: discussions, code, and diagrams.

Additional topics for interview prep:

 Study guide
 How to approach a system design interview question
 System design interview questions, with solutions
 Object-oriented design interview questions, with solutions
 Additional system design interview questions

 Anki flashcards


  
  


The provided Anki flashcard decks use spaced repetition to help you retain key system design concepts.

 System design deck
 System design exercises deck
 Object oriented design exercises deck

Great for use while on-the-go.

 Coding Resource: Interactive Coding Challenges

Looking for resources to help you prep for the Coding Interview?


  
  


Check out the sister repo Interactive Coding Challenges, which contains an additional Anki deck:

 Coding deck

 Contributing

 Learn from the community.

Feel free to submit pull requests to help:

 Fix errors
 Improve sections
 Add new sections
 Translate

Content that needs some polishing is placed under development.

Review the Contributing Guidelines.

 Index of system design topics

 Summaries of various system design topics, including pros and cons.  Everything is a trade-off.

 Each section contains links to more in-depth resources.


  
  


 System design topics: start here
     Step 1: Review the scalability video lecture
     Step 2: Review the scalability article
     Next steps
 Performance vs scalability
 Latency vs throughput
 Availability vs consistency
     CAP theorem
         CP - consistency and partition tolerance
         AP - availability and partition tolerance
 Consistency patterns
     Weak consistency
     Eventual consistency
     Strong consistency
 Availability patterns
     Fail-over
     Replication
     Availability in numbers
 Domain name system
 Content delivery network
     Push CDNs
     Pull CDNs
 Load balancer
     Active-passive
     Active-ac

Top issues

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON