159 chapters live

Design distributed systems the right way.

The open-source High-Level Design handbook. 159 modules, 727K+ words, 653 diagrams. From TCP to LLM serving. Read the chapters on the web or GitHub — no sign-up required to read.

159modules
727Kwords
2424pages
CC BY-SAopen content
159chapters live
Part 8 · Case StudiesSocial Media Feed

Social Media Feed.

The fan-out decision, and how to survive a celebrity.

very timeline is a lie. When you open Instagram you are not seeing "the latest posts from your friends." You are seeing a snapshot pre-stitched seconds ago by a fan-out service running across a farm of machines. This chapter is about when the stitching should happen — and how to keep Justin Bieber from taking down the write-path.

25
NOW READING Ch. 8.6 — Social Media Feed
6 / 9
The gap

Every other system design repo has a problem.

You've searched. You've starred five repositories. You still do not have a coherent place to learn. Here is why.

Link dumps

Awesome-lists that redirect to scattered blog posts of uneven quality. Great for curation, useless as teaching.

Teaser-and-redirect

READMEs that tease substance then steer you to ByteByteGo, DesignGurus, Educative, or InterviewReady. The real explanations are somewhere else.

Frozen in 2022

No AI system design, no LLM serving, no vector search, no CRDT-based collaboration. The field moved on; the repos did not.

Monolithic README

A single 110 KB file with no order, no search, no progress tracking. You scroll with Cmd-F and hope.

Dead links

Half the citations are 404s. The other half are behind a login wall the maintainer never noticed.

How this is different

A handbook, not a list.

Every chapter is a complete teaching article with diagrams, trade-offs, exercises, and real citations. Ordered, opinionated, and openly licensed.

The curriculum

12 parts, 159 modules, 2424 pages.

Comparable in scope to Designing Data-Intensive Applications (562 pages) or Alex Xu's two volumes combined. Openly licensed.

PART 0 / 115 modules

Prerequisites

Networking, OS, data structures, databases, APIs. The foundation.

PART 1 / 117 modules

Core Fundamentals

Scalability, CAP, estimation, interview framework. The vocabulary.

PART 2 / 1116 modules

Building Blocks

Load balancers, caches, queues, databases, rate limiters.

PART 3 / 1111 modules

Distributed Systems Theory

Consensus, CRDTs, clocks, consistent hashing. The theory.

PART 4 / 1110 modules

Data Systems

Storage engines, OLAP, streams, search, vectors.

PART 5 / 1111 modules

Architecture Patterns

Microservices, event-driven, CQRS, multi-region.

PART 6 / 1111 modules

Reliability and Operations

Observability, SLOs, chaos, deployment strategies.

PART 7 / 1110 modules

Security at Scale

OAuth2, JWT, mTLS, DDoS.

PART 8 / 1156 modules

Case Studies

56 end-to-end system designs.

PART 9 / 1115 modules

AI & ML System Design

LLM serving, RAG, agents, multi-agent orchestration, evaluation, cost, safety, ML fundamentals, feature stores, recommendations, multimodal, voice.

PART 10 / 111 modules

Emerging Patterns

Green computing and forward-looking topics that have not yet settled into a canonical home. Slim by design: new primitives land here first, then graduate into the relevant Part once they mature.

PART 11 / 116 modules

Interview Framework

RESHADED, diagramming, trade-off articulation, company-specific flavours.

The alternatives

Honest about where we stand.

There are good paid resources and good free ones. This is what you're trading off.

Feature
HLD Handbook
system-design-primer
ByteByteGo ($150/yr)
Chapters free to read
Free
Free
Paid
Inline content (not links)
Yes
Yes
Yes
Progressive curriculum
Yes
Partial
Yes
Actively maintained (2025+)
Yes
Frozen
Yes
LLM / vector / edge topics
Yes
No
Partial
Beautiful website + search
Yes
GitHub only
Yes
Fork and remix
CC BY-SA 4.0
CC BY 4.0
Copyrighted
The rules we hold ourselves to

The principles.

These are not aspirational. They are enforced in code review and CI.

One hundred percent inline content

Every chapter is a full teaching article. No "read this external blog for the details." If a concept matters, it is explained here, with diagrams and trade-offs.

Progressive, opinionated curriculum

Chapters are numbered and ordered. Each one declares its prerequisites. "It depends" is always followed by "on what."

Honest about complexity

We do not use the words "simply" or "just." Distributed systems are hard. We say so, and walk through the hard parts.

Modern and maintained

Every file has a date_updated. Part 9 is a dedicated AI & ML System Design track with agents, evaluation, and cost covered end-to-end. Out-of-date numbers are flagged in review.

Peer-reviewed

Every chapter is reviewed by someone other than the author. For case studies, a reviewer with production experience is strongly preferred.

Open-licensed, readable without a sign-up

CC BY-SA 4.0 for content, MIT for code. The ShareAlike clause keeps the handbook text itself open to read and remix — nobody can lock the chapters behind a paywall. Any future companion tools live alongside the handbook, not on top of it.

The end of the intro

Ready to read?

Start from the beginning, or jump straight to your target. The chapters are open to read — no sign-up, no paywall — so you can go as deep as you like.