Design the Threads Following Feed With Hybrid Fan-Out

Last updated: November 29, 2026

Quick Overview

Design the reverse-chronological Following feed for Threads, where most accounts have a few hundred followers but some have tens of millions. Reads must be fast and new posts should appear within seconds.

Meta
System Design
Software Engineer
Meta
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the reverse-chronological Following feed for Threads, where most accounts have a few hundred followers but some have tens of millions. Reads must be fast and new posts should appear within seconds.

This is the classic Meta feed question narrowed to a chronological feed so the conversation stays on fan-out mechanics instead of ranking. Interviewers look for the push vs pull trade-off, celebrity handling, and concrete storage sizing.

What the Interviewer Expects
  • Compare fan-out on write and fan-out on read with numbers
  • Propose a hybrid with a follower-count threshold
  • Design the per-user timeline cache and its size bound
  • Handle deletes, unfollows, and edits
  • Describe pagination with cursors
Key Topics to Cover
Fan-out on write
Fan-out on read
Timeline cache
Celebrity problem
Cursor pagination
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you handle a user who follows 5,000 accounts, 40 of them celebrities?
  • What happens when an account crosses the celebrity threshold?
  • How would you add a 'muted words' filter?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: post, follow, read Following feed newest first, paginate, delete posts.

Scale assumptions: 200M DAU, 50M posts/day, average 300 followers, feed read p99 under 200 ms, post visible...

High-Level Design
  • Post service writes the post to a sharded posts store (by post_id, time-sortable IDs).
  • Fan-out workers consume a post-created queue, read the author's follower list from the graph servic...

Submit Your Answer
Markdown supported