← Open Source

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

Python
Momentum
+2stars in 24 hours+0.1%
3.65k
Stars
696
Forks
+7
This week
6
Contributors
Created 2019-09-25 · Updated 2026-12-05 · #3276 today
Top developers
puncskyhirehamirjorgedfbranco
README

System Design and Architecture

Learn how Uber, Netflix, Stripe, and modern AI agents are built, one system at a time.
A practical, diagram-first guide for engineers who build real systems and ace system design interviews.

Start here · What's new · Case studies · Theories · Interview prep · 简体中文 · Website

⭐ Star this repo to follow new chapters as they land.

The 2nd Edition is a work in progress. New chapters are published regularly, so watch the repo for updates.

Why this book

Since 2015, System Design and Architecture has helped software engineers around the world land roles and design better systems. It works because it is:

  1. 🌎 Grounded in real systems. Every design starts from how companies such as Uber, Facebook, Netflix, Stripe, and Dropbox actually build their products.
  2. 🍕 Easy to digest. System design at the right level of abstraction is a map that gets you to the destination by the shortest route. Charts, diagrams, and step-by-step guides give you the minimum actionable knowledge to excel in interviews and start building.
  3. 🤲 Broad. It covers backend to frontend, and classic distributed systems to LLM inference and AI agents.
  4. 🚶‍♀️ Repeatable. Every design follows the same 4-step framework:
    1. Clarify requirements
    2. Sketch the high-level design
    3. Deep dive into components and how they interact
    4. Wrap up with blind spots and bottlenecks

Start here

If you are... Read this path
🧑‍💼 Senior (Google L5+) Go straight to System Design in Practice.
🧑‍💻 Junior or mid-level (Google L3/L4) Read System Design Theories first, then System Design in Practice.
🌱 Just starting out Begin with Prepare for an Interview effectively, then Theories, then Practice.

What's new

The 2nd Edition covers what changed between 2015 and today: mobile ate the world, cloud-native computing arrived with Kubernetes, web3 rose and fell, and AI agents became a new class of system. Recent additions:

Also coming in the 2nd Edition: more companies and products, existing chapters rewritten for current trends, more diagrams with step-by-step guides, a PDF edition, and less repetition so that each design teaches its own abstraction.

Out of scope: API design for specific domains (see Google's API design guide) and deep object-oriented design.

System Design in Practice

🤖 AI and Agents

Product Question
Designing an Always-on Agent
Designing a recommendation system
Fraud Detection with Semi-supervised Learning

📱 Social, Media, and Marketplaces

Product Question
Designing Instagram or Pinterest
Designing Uber
Designing Airbnb or a hotel booking system
How Facebook Scale its Social Graph Store? TAO
How Netflix Serves Viewing Data?
How to stream video over HTTP for mobile devices? HTTP Live Streaming (HLS)
Lyft's Marketing Automation Platform -- Symphony
Designing typeahead search or autocomplete
Designing Online Judge or Leetcode

💳 Payments and Fintech

Product Question
How to design robust and predictable APIs with idempotency?
Designing payment webhook
Designing Square Cash or PayPal Money Transfer System
Designing Stock Exchange
Designing Smart Notification of Stock Price Changes

🏗️ Storage and Infrastructure

Product Question
Designing a distributed logging system
Designing a URL shortener
Designing a KV store with external storage
Designing a distributed in-memory KV store or Memcached
Designing Facebook photo storage
Designing a metric system
Designing a Load Balancer or Dropbox Bandaid

System Design Theories

Foundations

Data and consistency

Data structures

AI systems

Engineering craft

Prepare for an Interview effectively

Read in your language

About the author

Tian Pan is a software engineer and engineering manager who has worked in the San Francisco Bay Area for 10+ years, at Uber, Oracle, IoTeX, and Microsoft. More notes live at tianpan.co.

Community and contributing

  • 💬 Join the discussion on Telegram or Discord.
  • 🐛 Found a typo, a broken diagram, or a gap in a design? Open an issue or send a PR.
  • 🌐 Translations are welcome. Chapters in en/ and zh-CN/ use identical filenames.

License

GPL v3

Found this useful? ⭐ Star the repo. Spotted a gap? Open a PR.

Nearby in the ranking

AI Rank for iPhone

Follow AI model rankings

Download on the App Store