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
More from this author
+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-acTop issues
#40Brazilian Portuguese translation54 comments · 2017-03-27#136Spanish translation54 comments · 2018-02-22#28Request for Translations53 comments · 2017-03-21#39Turkish translation30 comments · 2017-03-27#170Arabic translation26 comments · 2018-07-14#127Vietnamese Translation 27 comments · 2018-01-20#250French translation26 comments · 2019-02-07#4PDF Download26 comments · 2017-03-09
News & coverage (12)
Hacker NewsLearn how to design large-scale systems▲ 1,273 · 185 comments · 2018-07-13Hacker NewsSystem Design Primer: Learn how to design large-scale systems▲ 170 · 29 comments · 2021-12-28Hacker NewsGitHub – system-design-primer: Learn how to design large-scale systems▲ 112 · 20 comments · 2023-10-29Hacker NewsAsk HN: AI Architecture Systems Design▲ 1 · 0 comments · 2026-09-01Hacker NewsAsk HN: What are the best resources to crack system design interviews?▲ 1 · 0 comments · 2021-06-08Hacker NewsAsk HN: Architecture Diagrams for GitHub Readme.md?▲ 1 · 5 comments · 2019-05-09Hostinger15 Most Popular GitHub Repos for Developers in 20262026-09-18KDnuggets10 GitHub Repositories to Master System Design2026-03-05KDnuggets10 GitHub Repositories to Master Computer Science2024-04-04analyticsindiamag.com7 Github Repositories to Crack Tech Interviews in 20252022-04-29