System Design: Twitter
#System Design
#Twitter
#Scalability
#Case Study
Requirements
- Post tweets
- Follow users
- News feed
- 100M DAU
- Read heavy
Architecture
- Load Balancer
- API Gateway
- Fan-out on write for celebrity users?
- Fan-out on read for normal users?
Key Takeaways
- Redis is crucial for the timeline generation.
- Hybrid approach for feed generation works best.