百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

donnemartin-system-design-primer

> 编程语言
开源

English ∙ 日本語 ∙ 简体中文 ∙ 繁體中文 | 巴西葡萄牙语 ∙ 希腊语 ∙ 意大利语 ∙ 韩语 ∙ 波斯语 ∙ 波兰语 ∙ 俄语 ∙ 西班牙语 ∙ 土耳其语 ∙ 越南语…

396 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

English ∙ 日本語 ∙ 简体中文 ∙ 繁體中文 | 巴西葡萄牙语 ∙ 希腊语 ∙ 意大利语 ∙ 韩语 ∙ 波斯语 ∙ 波兰语 ∙ 俄语 ∙ 西班牙语 ∙ 土耳其语 ∙ 越南语…

English ∙ 日本語 ∙ 简体中文 ∙ 繁體中文 | Brazilian Portuguese ∙ Greek ∙ Italian ∙ Korean ∙ Persian ∙ Polish ∙ Russian ∙ Spanish ∙ Turkish ∙ Vietnamese | Add Translation

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 is a vast amount 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 an early draft of 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
  • Domain name system
  • Content delivery network
    • Push CDNs
    • Pull CDNs
  • Load balancer
    • Active-passive
    • Active-active
    • Layer 4 load balancing
    • Layer 7 load balancing
    • Horizontal scaling
  • Reverse proxy (web server)
    • Load balancer vs reverse proxy
  • Application layer
    • Microservices
    • Service discovery
  • Database
    • Relational database management system (RDBMS)
      • Master-slave replication
      • Master-master replication
      • Federation
      • Sharding
      • Denormalization
      • SQL tuning
    • NoSQL
      • Key-value store
      • Document store
      • Wide column store
      • Graph Database
    • SQL or NoSQL
  • Cache
    • Client caching
    • CDN caching
    • Web server caching
    • Database caching
    • Application caching
    • Caching at the database query level
    • Caching at the object level
    • When to update the cache
      • Cache-aside
      • Write-through
      • Write-behind (write-back)
      • Refresh-ahead
  • Asynchronism
    • Message queues
    • Task queues
    • Back pressure
  • Communication
    • Transmission control protocol (TCP)
    • User datagram protocol (UDP)
    • Remote procedure call (RPC)
    • Representational state transfer (REST)
  • Security
  • Appendix
    • Powers of two table
    • Latency numbers every programmer should know
    • Additional system design interview questions
    • Real world architectures
    • Company architectures
    • Company engineering blogs
  • Under development
  • Credits
  • Contact info
  • License

Study guide

Suggested topics to review based on your interview timeline (short, medium, long).

Q: For interviews, do I need to know everything here?

A: No, you don't need to know everything here to prepare for the interview.

What you are asked in an interview depends on variables such as:

  • How much experience you have
  • What your technical background is
  • What positions you are interviewing for
  • Which companies you are interviewing with
  • Luck

More experienced candidates are generally expected to know more about system design. Architects or team leads might be expected to know more than individual contributors. Top tech companies are likely to have one or more design interview rounds.

Start broad and go deeper in a few areas. It helps to know a little about various key system design topics. Adjust the following guide based on your timeline, experience, what positions you are interviewing for, and which companies you are interviewing with.

  • Short timeline - Aim for breadth with system design topics. Practice by solving some interview questions.
  • Medium timeline - Aim for breadth and some depth with system design topics. Practice by solving many interview questions.
  • Long timeline - Aim for breadth and more depth with system design topics. Practice by solving most interview questions.
Short Medium Long
Read through the System design topics to get a broad understanding of how systems work :+1: :+1: :+1:
Read through a few articles in the Company engineering blogs for the companies you are interviewing with :+1: :+1: :+1:
Read through a few Real world architectures :+1: :+1: :+1:
Review How to approach a system design interview question :+1: :+1: :+1:
Work through System design interview questions with solutions Some Many Most
Work through Object-oriented design interview questions with solutions Some Many Most
Review Additional system design interview questions Some Many Most

How to approach a system design interview question

How to tackle a system design interview question.

The system design interview is an open-ended conversation. You are expected to lead it.

You can use the following steps to guide the discussion. To help solidify this process, work through the System design interview questions with solutions section using the following steps.

Step 1: Outline use cases, constraints, and assumptions

Gather requirements and scope the problem. Ask questions to clarify use cases and constraints. Discuss assumptions.

  • Who is going to use it?
  • How are they going to use it?
  • How many users are there?
  • What does the system do?
  • What are the inputs and outputs of the system?
  • How much data do we expect to handle?
  • How many requests per second do we expect?
  • What is the expected read to write ratio?

Step 2: Create a high level design

Outline a high level design with all important components.

  • Sketch the main components and connections
  • Justify your ideas

Step 3: Design core components

Dive into details for each core component. For example, if you were asked to design a url shortening service, discuss:

  • Generating and storing a hash of the full url
    • MD5 and Base62
    • Hash collisions
    • SQL or NoSQL
    • Database schema
  • Translating a hashed url to the full url
    • Database lookup
  • API and object-oriented design

Step 4: Scale the design

Identify and address bottlen

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言