# admol/systemdesign architecture

> Architecture diagram of the GitHub repository admol/systemdesign, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/admol/systemdesign
- Repository: https://github.com/admol/systemdesign

## Overview

This repository is a Chinese translation of two system-design interview books, presented as linked Markdown chapters rather than an executable application. A reader starts at the README contents and opens a chapter for a design topic. The chapters cover fundamentals, reusable distributed-system concepts, and end-to-end system designs across both volumes. No source excerpts were provided, so the graph captures only the chapter links documented in the README; it does not infer relationships between chapter contents.

Main entry points: [`README.md`](https://github.com/admol/systemdesign/blob/main/README.md) (Contents and Entry), [`CHAPTER 01：SCALE FROM ZERO TO MILLIONS OF USERS.md`](https://github.com/admol/systemdesign/blob/main/CHAPTER%2001%EF%BC%9ASCALE%20FROM%20ZERO%20TO%20MILLIONS%20OF%20USERS.md) (Scale Basics), [`CHAPTER 02：BACK-OF-THE-ENVELOPE ESTIMATION.md`](https://github.com/admol/systemdesign/blob/main/CHAPTER%2002%EF%BC%9ABACK-OF-THE-ENVELOPE%20ESTIMATION.md) (Capacity Estimation), [`CHAPTER 03：A FRAMEWORK FOR SYSTEM DESIGN INTERVIEWS.md`](https://github.com/admol/systemdesign/blob/main/CHAPTER%2003%EF%BC%9AA%20FRAMEWORK%20FOR%20SYSTEM%20DESIGN%20INTERVIEWS.md) (Interview Framework)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_fundamentals["Design Fundamentals"]
  node_ch01["Scale Basics"]
  node_ch02["Capacity Estimation"]
  node_ch03["Interview Framework"]
end

subgraph group_building_blocks["System Building Blocks"]
  node_ch04["Rate Limiter"]
  node_ch05["Consistent Hashing"]
  node_ch06["Key-Value Store"]
  node_ch07["Unique ID Generator"]
end

subgraph group_volume_one["Volume One Designs"]
  node_ch08["URL Shortener"]
  node_ch09["Web Crawler"]
  node_ch10["Notification System"]
  node_ch11["News Feed"]
  node_ch12["Chat System"]
  node_ch13["Search Autocomplete"]
  node_ch14["YouTube"]
  node_ch15["Google Drive"]
end

subgraph group_volume_two["Volume Two Designs"]
  node_v2ch01["Proximity Service"]
  node_v2ch02["Nearby Friends"]
  node_v2ch03["Google Maps"]
  node_v2ch04["Message Queue"]
  node_v2ch05["Metrics and Alerts"]
  node_v2ch06["Ad Event Aggregation"]
  node_v2ch07["Hotel Reservation"]
  node_v2ch10["Gaming Leaderboard"]
  node_v2ch11["Payment System"]
  node_v2ch12["Digital Wallet"]
  node_v2ch13["Stock Exchange"]
end

node_reader(("Reader"))
node_readme["Contents and Entry<br/>[README.md]"]

node_reader -->|"opens contents"| node_readme
node_readme -->|"links chapter"| node_ch01
node_readme -->|"links chapter"| node_ch02
node_readme -->|"links chapter"| node_ch03
node_readme -->|"links chapter"| node_ch04
node_readme -->|"links chapter"| node_ch05
node_readme -->|"links chapter"| node_ch06
node_readme -->|"links chapter"| node_ch07
node_readme -->|"links chapter"| node_ch08
node_readme -->|"links chapter"| node_ch09
node_readme -->|"links chapter"| node_ch10
node_readme -->|"links chapter"| node_ch11
node_readme -->|"links chapter"| node_ch12
node_readme -->|"links chapter"| node_ch13
node_readme -->|"links chapter"| node_ch14
node_readme -->|"links chapter"| node_ch15
node_readme -->|"links chapter"| node_v2ch01
node_readme -->|"links chapter"| node_v2ch02
node_readme -->|"links chapter"| node_v2ch03
node_readme -->|"links chapter"| node_v2ch04
node_readme -->|"links chapter"| node_v2ch05
node_readme -->|"links chapter"| node_v2ch06
node_readme -->|"links chapter"| node_v2ch07
node_readme -->|"links chapter"| node_v2ch10
node_readme -->|"links chapter"| node_v2ch11
node_readme -->|"links chapter"| node_v2ch12
node_readme -->|"links chapter"| node_v2ch13

click node_readme "https://github.com/admol/systemdesign/blob/main/README.md"
click node_ch01 "https://github.com/admol/systemdesign/blob/main/CHAPTER%2001%EF%BC%9ASCALE%20FROM%20ZERO%20TO%20MILLIONS%20OF%20USERS.md"
click node_ch02 "https://github.com/admol/systemdesign/blob/main/CHAPTER%2002%EF%BC%9ABACK-OF-THE-ENVELOPE%20ESTIMATION.md"
click node_ch03 "https://github.com/admol/systemdesign/blob/main/CHAPTER%2003%EF%BC%9AA%20FRAMEWORK%20FOR%20SYSTEM%20DESIGN%20INTERVIEWS.md"
click node_ch04 "https://github.com/admol/systemdesign/blob/main/CHAPTER%2004%EF%BC%9ADESIGN%20A%20RATE%20LIMITER.md"
click node_ch05 "https://github.com/admol/systemdesign/blob/main/CHAPTER%2005%EF%BC%9ADESIGN%20CONSISTENT%20HASHING.md"
click node_ch06 "https://github.com/admol/systemdesign/blob/main/CHAPTER%2006%EF%BC%9ADESIGN%20A%20KEY-VALUE%20STORE.md"
click node_ch07 "https://github.com/admol/systemdesign/blob/main/CHAPTER%2007%EF%BC%9ADESIGN%20A%20UNIQUE%20ID%20GENERATOR%20IN%20DISTRIBUTED%20SYSTEMS.md"
click node_ch08 "https://github.com/admol/systemdesign/blob/main/CHAPTER%2008%EF%BC%9ADESIGN%20A%20URL%20SHORTENER.md"
click node_ch09 "https://github.com/admol/systemdesign/blob/main/CHAPTER%2009%EF%BC%9ADESIGN%20A%20WEB%20CRAWLER.md"
click node_ch10 "https://github.com/admol/systemdesign/blob/main/CHAPTER%2010%EF%BC%9ADESIGN%20A%20NOTIFICATION%20SYSTEM.md"
click node_ch11 "https://github.com/admol/systemdesign/blob/main/CHAPTER%2011%EF%BC%9ADESIGN%20A%20NEWS%20FEED%20SYSTEM.md"
click node_ch12 "https://github.com/admol/systemdesign/blob/main/CHAPTER%2012%EF%BC%9ADESIGN%20A%20CHAT%20SYSTEM.md"
click node_ch13 "https://github.com/admol/systemdesign/blob/main/CHAPTER%2013%EF%BC%9ADESIGN%20A%20SEARCH%20AUTOCOMPLETE%20SYSTEM.md"
click node_ch14 "https://github.com/admol/systemdesign/blob/main/CHAPTER%2014%EF%BC%9ADESIGN%20YOUTUBE.md"
click node_ch15 "https://github.com/admol/systemdesign/blob/main/CHAPTER%2015%EF%BC%9ADESIGN%20GOOGLE%20DRIVE.md"
click node_v2ch01 "https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2001%EF%BC%9AProximity%20Service.md"
click node_v2ch02 "https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2002%EF%BC%9ANearby%20Friends.md"
click node_v2ch03 "https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2003%EF%BC%9AGoogle%20Maps.md"
click node_v2ch04 "https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2004%EF%BC%9ADistributed%20Message%20Queue.md"
click node_v2ch05 "https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2005%EF%BC%9AMetrics%20Monitoring%20and%20Alerting%20System.md"
click node_v2ch06 "https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2006%EF%BC%9AAd%20Click%20Event%20Aggregation.md"
click node_v2ch07 "https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2007%EF%BC%9AHotel%20Reservation%20System.md"
click node_v2ch10 "https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2010%EF%BC%9AReal-time%20Gaming%20Leaderboard.md"
click node_v2ch11 "https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2011%EF%BC%9APayment%20System.md"
click node_v2ch12 "https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2012%EF%BC%9ADigital%20Wallet.md"
click node_v2ch13 "https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2013%EF%BC%9AStock%20Exchange.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_ch01,node_ch02,node_ch03 toneBlue
class node_ch04,node_ch05,node_ch06,node_ch07 toneAmber
class node_ch08,node_ch09,node_ch10,node_ch11,node_ch12,node_ch13,node_ch14,node_ch15 toneMint
class node_v2ch01,node_v2ch02,node_v2ch03,node_v2ch04,node_v2ch05,node_v2ch06,node_v2ch07,node_v2ch10,node_v2ch11,node_v2ch12,node_v2ch13 toneRose
class node_reader toneIndigo
class node_readme toneTeal
```

## Components

### Design Fundamentals

- [Scale Basics](https://github.com/admol/systemdesign/blob/main/CHAPTER%2001%EF%BC%9ASCALE%20FROM%20ZERO%20TO%20MILLIONS%20OF%20USERS.md): `CHAPTER 01：SCALE FROM ZERO TO MILLIONS OF USERS.md`
- [Capacity Estimation](https://github.com/admol/systemdesign/blob/main/CHAPTER%2002%EF%BC%9ABACK-OF-THE-ENVELOPE%20ESTIMATION.md): `CHAPTER 02：BACK-OF-THE-ENVELOPE ESTIMATION.md`
- [Interview Framework](https://github.com/admol/systemdesign/blob/main/CHAPTER%2003%EF%BC%9AA%20FRAMEWORK%20FOR%20SYSTEM%20DESIGN%20INTERVIEWS.md): `CHAPTER 03：A FRAMEWORK FOR SYSTEM DESIGN INTERVIEWS.md`

### System Building Blocks

- [Rate Limiter](https://github.com/admol/systemdesign/blob/main/CHAPTER%2004%EF%BC%9ADESIGN%20A%20RATE%20LIMITER.md): `CHAPTER 04：DESIGN A RATE LIMITER.md`
- [Consistent Hashing](https://github.com/admol/systemdesign/blob/main/CHAPTER%2005%EF%BC%9ADESIGN%20CONSISTENT%20HASHING.md): `CHAPTER 05：DESIGN CONSISTENT HASHING.md`
- [Key-Value Store](https://github.com/admol/systemdesign/blob/main/CHAPTER%2006%EF%BC%9ADESIGN%20A%20KEY-VALUE%20STORE.md): `CHAPTER 06：DESIGN A KEY-VALUE STORE.md`
- [Unique ID Generator](https://github.com/admol/systemdesign/blob/main/CHAPTER%2007%EF%BC%9ADESIGN%20A%20UNIQUE%20ID%20GENERATOR%20IN%20DISTRIBUTED%20SYSTEMS.md): `CHAPTER 07：DESIGN A UNIQUE ID GENERATOR IN DISTRIBUTED SYSTEMS.md`

### Volume One Designs

- [URL Shortener](https://github.com/admol/systemdesign/blob/main/CHAPTER%2008%EF%BC%9ADESIGN%20A%20URL%20SHORTENER.md): `CHAPTER 08：DESIGN A URL SHORTENER.md`
- [Web Crawler](https://github.com/admol/systemdesign/blob/main/CHAPTER%2009%EF%BC%9ADESIGN%20A%20WEB%20CRAWLER.md): `CHAPTER 09：DESIGN A WEB CRAWLER.md`
- [Notification System](https://github.com/admol/systemdesign/blob/main/CHAPTER%2010%EF%BC%9ADESIGN%20A%20NOTIFICATION%20SYSTEM.md): `CHAPTER 10：DESIGN A NOTIFICATION SYSTEM.md`
- [News Feed](https://github.com/admol/systemdesign/blob/main/CHAPTER%2011%EF%BC%9ADESIGN%20A%20NEWS%20FEED%20SYSTEM.md): `CHAPTER 11：DESIGN A NEWS FEED SYSTEM.md`
- [Chat System](https://github.com/admol/systemdesign/blob/main/CHAPTER%2012%EF%BC%9ADESIGN%20A%20CHAT%20SYSTEM.md): `CHAPTER 12：DESIGN A CHAT SYSTEM.md`
- [Search Autocomplete](https://github.com/admol/systemdesign/blob/main/CHAPTER%2013%EF%BC%9ADESIGN%20A%20SEARCH%20AUTOCOMPLETE%20SYSTEM.md): `CHAPTER 13：DESIGN A SEARCH AUTOCOMPLETE SYSTEM.md`
- [YouTube](https://github.com/admol/systemdesign/blob/main/CHAPTER%2014%EF%BC%9ADESIGN%20YOUTUBE.md): `CHAPTER 14：DESIGN YOUTUBE.md`
- [Google Drive](https://github.com/admol/systemdesign/blob/main/CHAPTER%2015%EF%BC%9ADESIGN%20GOOGLE%20DRIVE.md): `CHAPTER 15：DESIGN GOOGLE DRIVE.md`

### Volume Two Designs

- [Proximity Service](https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2001%EF%BC%9AProximity%20Service.md): `Volume2/CHAPTER 01：Proximity Service.md`
- [Nearby Friends](https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2002%EF%BC%9ANearby%20Friends.md): `Volume2/CHAPTER 02：Nearby Friends.md`
- [Google Maps](https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2003%EF%BC%9AGoogle%20Maps.md): `Volume2/CHAPTER 03：Google Maps.md`
- [Message Queue](https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2004%EF%BC%9ADistributed%20Message%20Queue.md): `Volume2/CHAPTER 04：Distributed Message Queue.md`
- [Metrics and Alerts](https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2005%EF%BC%9AMetrics%20Monitoring%20and%20Alerting%20System.md): `Volume2/CHAPTER 05：Metrics Monitoring and Alerting System.md`
- [Ad Event Aggregation](https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2006%EF%BC%9AAd%20Click%20Event%20Aggregation.md): `Volume2/CHAPTER 06：Ad Click Event Aggregation.md`
- [Hotel Reservation](https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2007%EF%BC%9AHotel%20Reservation%20System.md): `Volume2/CHAPTER 07：Hotel Reservation System.md`
- [Gaming Leaderboard](https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2010%EF%BC%9AReal-time%20Gaming%20Leaderboard.md): `Volume2/CHAPTER 10：Real-time Gaming Leaderboard.md`
- [Payment System](https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2011%EF%BC%9APayment%20System.md): `Volume2/CHAPTER 11：Payment System.md`
- [Digital Wallet](https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2012%EF%BC%9ADigital%20Wallet.md): `Volume2/CHAPTER 12：Digital Wallet.md`
- [Stock Exchange](https://github.com/admol/systemdesign/blob/main/Volume2/CHAPTER%2013%EF%BC%9AStock%20Exchange.md): `Volume2/CHAPTER 13：Stock Exchange.md`

### Other components

- **Reader**
- [Contents and Entry](https://github.com/admol/systemdesign/blob/main/README.md): `README.md`

## Connections

- Reader → Contents and Entry: opens contents (evidence: `README.md`)
- Contents and Entry → Scale Basics: links chapter (evidence: `README.md`)
- Contents and Entry → Capacity Estimation: links chapter (evidence: `README.md`)
- Contents and Entry → Interview Framework: links chapter (evidence: `README.md`)
- Contents and Entry → Rate Limiter: links chapter (evidence: `README.md`)
- Contents and Entry → Consistent Hashing: links chapter (evidence: `README.md`)
- Contents and Entry → Key-Value Store: links chapter (evidence: `README.md`)
- Contents and Entry → Unique ID Generator: links chapter (evidence: `README.md`)
- Contents and Entry → URL Shortener: links chapter (evidence: `README.md`)
- Contents and Entry → Web Crawler: links chapter (evidence: `README.md`)
- Contents and Entry → Notification System: links chapter (evidence: `README.md`)
- Contents and Entry → News Feed: links chapter (evidence: `README.md`)
- Contents and Entry → Chat System: links chapter (evidence: `README.md`)
- Contents and Entry → Search Autocomplete: links chapter (evidence: `README.md`)
- Contents and Entry → YouTube: links chapter (evidence: `README.md`)
- Contents and Entry → Google Drive: links chapter (evidence: `README.md`)
- Contents and Entry → Proximity Service: links chapter (evidence: `README.md`)
- Contents and Entry → Nearby Friends: links chapter (evidence: `README.md`)
- Contents and Entry → Google Maps: links chapter (evidence: `README.md`)
- Contents and Entry → Message Queue: links chapter (evidence: `README.md`)
- Contents and Entry → Metrics and Alerts: links chapter (evidence: `README.md`)
- Contents and Entry → Ad Event Aggregation: links chapter (evidence: `README.md`)
- Contents and Entry → Hotel Reservation: links chapter (evidence: `README.md`)
- Contents and Entry → Gaming Leaderboard: links chapter (evidence: `README.md`)
- Contents and Entry → Payment System: links chapter (evidence: `README.md`)
- Contents and Entry → Digital Wallet: links chapter (evidence: `README.md`)
- Contents and Entry → Stock Exchange: links chapter (evidence: `README.md`)
