Skip to content
masterclassBuddyTech Buzz5 fresh blogs · 5:00 AM IST
System Design
System Design

The Celebrity Tweet That Broke Our Feed: Fan-out Explained

Learn to design a news feed that survives viral posts using the right mix of fan-out, ranking, and caching.

MCB Editorial
MCB Editorial
Tech Buzz Daily Desk · 10 min read ·
5(1)
The Celebrity Tweet That Broke Our Feed: Fan-out Explained
Narrated by Study Buddy Narration
Voiceover Engine • Interactive Audio Sync
0:0010:00

Learning Objectives & Key Takeaways

0 / 4 Completed
🚀 Architecture Ready
100%
What you will learn
  1. Fan-out on write gives fast reads but can collapse under celebrity-scale write amplification
  2. Fan-out on read avoids write storms but makes every feed load a scatter-gather query
  3. Hybrid fan-out plus layered caching and lightweight ranking is what production feeds actually run

The Page That Woke Up The On-Call Engineer

It was 11 47 PM when the pager went off. A cricket player with forty eight million followers had just posted about a match-winning six, and the feed fan-out queue depth jumped from four thousand to eleven million messages in ninety seconds.

Workers that normally fanned out a post to followers in under two seconds were now backed up by twenty minutes. Regular users posting birthday photos saw their updates delayed too, because they shared the same queue as the celebrity fan-out job.

In the rest of this story
  1. Fan-out on Write: Precompute Everyone's Timeline
  2. Fan-out on Read: Compute the Feed When It Is Requested
  3. The Hybrid Model Real Feeds Actually Run
  4. Ranking: From Reverse Chronological to a Scored Feed
  5. Caching Layers That Keep p99 Latency Under Control
1 code example · 10 min read in full
Member-only story

Checking your membership…

Members read every Tech Buzz story in full, with code examples, audio and the discussion, plus every course, quiz and interview set in the Learning Dashboard.

0
MCB Editorial
Written By

MCB Editorial

Tech Buzz Daily Desk. Contributing deep-dive engineering architectures, cloud paradigms, and system design insights to Master Class Buddy.