Design Twitter Timeline
HardSystem design · Social
Design Twitter timelines. Users post, repost, quote and reply; follow accounts; read a home timeline (people they follow) and a profile timeline (one author's posts). Handle accounts with 100M+ followers, deletes, mutes, blocks and protected accounts, plus cursor pagination. Focus on what is specific to Twitter: two timelines with different storage layouts, reposts and conversations. Generic ranked-feed questions are covered by the News Feed problem.
Requirements
- Support home timeline and profile timeline separately
- Handle high-follower accounts without overwhelming fanout workers
- Discuss tweet storage, timeline storage, cache, queues, and ranking hooks
- Support pagination, deletes, mutes, blocks, and privacy changes