Design profiles, posts, comments, notifications, and a moderation pipeline. The system must scale viral posts while controlling abuse and spam.
Functional requirements
- User profiles and follow graph
- Create posts with media attachments
- Comments, likes, shares, and mentions
- Notifications and activity feeds
Non-functional requirements
- High read/write fan-out with caching layers
- Content moderation latency and appeals
- Resilience during traffic spikes