TomoLink
CompaniesAppleSystem DesignDesign Twitter News Feed
System Design
HardSocial Media

Design Twitter News Feed

60 minsfeed-generationfan-outcaching
60 mins
1 sections
feed-generation, fan-out

Problem Overview

Functional Requirements

  • Users can post tweets (up to 280 chars)
  • Users can follow/unfollow other users
  • User's home timeline shows tweets from people they follow
  • Tweets can have likes, retweets

Non-Functional Requirements

  • Timeline should load quickly (< 200ms)
  • Highly available
  • Eventual consistency acceptable

Scale

  • 100M daily active users
  • 50M tweets per day
  • 600K tweets per second (peak read)
  • 300x more reads than writes
Design Twitter News Feed [Hard] | Apple System_design | TomoLink