If I had to pick one concept that unlocks the most system design questions, it’s fan-out.
Fan-out is what happens when one write event must reach many readers. A tweet must appear in millions of timelines. A notification must reach hundreds of followers. A price update must propagate to thousands of active sessions.
How you handle fan-out determines the architecture of more questions than any other single decision. Here’s the full picture.
The two approaches
Fan-out on write (push model): When the write happens, immediately propagate the update to all interested parties. A user posts a tweet → the system finds all their followers → writes the tweet to each follower’s timeline cache → when the follower loads their feed, it’s already there.
Win: reads are fast. The timeline is pre-built.
Lose: writes are slow and expensive. Writing a tweet generates N writes where N is the follower count. For a user with 10 million followers, one tweet generates 10 million writes. Write amplification.
Fan-out on read (pull model): Don’t propagate on write. When a user requests their timeline, fetch all the accounts they follow, query each account’s post history, merge and sort the results.
Win: writes are cheap. One post, one write.
Lose: reads are expensive and slow. Merging feeds from hundreds of followed accounts at query time is O(N × K) where N is followed accounts and K is posts per account.
The hybrid: most production systems
Neither pure approach works at scale for social feeds. The production solution is hybrid:
For regular users (say, under 1 million followers): fan-out on write. When they post, immediately update all followers’ cached timelines.
For celebrity users (over 1 million followers, or whatever threshold your system defines): fan-out on read. When a follower loads their timeline, fetch the celebrity’s recent posts separately and merge them in.
The threshold matters and should be named explicitly. Saying “I’d use a hybrid approach” without naming the threshold and the mechanism is the most common gap in answers to social feed questions.
Where fan-out appears
The pattern shows up across archetypes, not just social feeds:
Group messaging (Slack, WhatsApp groups): one message → fan-out to N members. Same write amplification problem. Same large-group threshold for switching to pub-sub delivery.
Notifications: one event (order shipped) → fan-out to one user across multiple channels (push, email, in-app). The fan-out is to channels rather than to users.
Price updates in RTB: one bid opportunity → fan-out to hundreds of DSPs simultaneously. Fan-out at the exchange layer.
Presence in Discord: user comes online → fan-out their status to all contacts currently viewing a shared server.
CDN invalidation: one cache update → fan-out the invalidation to all edge nodes globally.
In every case, the same question applies: is it cheaper to push on write or pull on read? The answer depends on the write-to-read ratio, the fan-out count, and the acceptable read latency.
How to answer any fan-out question
State your default (fan-out on write or read) based on the read:write ratio. Name the failure mode (write amplification or read latency). Describe the threshold and the hybrid. Quantify: at 1M followers, fan-out on write generates 1M Cassandra writes per post — at 5K celebrity posts per second peak, that’s 5 billion writes per second. Not viable. At 100K followers, it’s 500M writes per second — borderline, depending on your infrastructure.
The numbers are what make the design decision defensible. The hybrid is what makes it production-grade.
CTA: The cohort curriculum trains you to master fan-out architectures across diverse system archetypes — teaching you to evaluate read-to-write ratios, quantify write amplification against read latency, define explicit celebrity thresholds for hybrid push-pull models, and defend your design decisions with concrete scale math.
Subscription link
https://systemdr.systemdrd.com/subscribe
If this helped you, the full course expands on these concepts with production-level examples and deeper explanations.

