This challenge builds on Social Feed 1 - MVP Launch. Complete it first for the best experience.
Chirper has exploded in popularity. The platform now has 10 million registered users, with 3 million daily active. New requirements:
- Celebrity problem - some users have 5 million+ followers. When they post, the fan-out creates a massive write amplification. The timeline service is buckling.•Search - users want to search for chirps by keyword, hashtag, or username. Search must return results within 500 ms.•Push notifications - users get notified when someone they follow posts, when their chirp is liked, or when they're mentioned.•Trending topics - a "Trending" section shows the most-discussed hashtags in the last hour.
Redesign the system to handle high-fanout scenarios, add search, and build a notification pipeline.
Handle 10 M users, celebrity fan-out, full-text search, and push notifications. Build this architecture under realistic production constraints, then validate tradeoffs in the design lab simulation.
Request path: The solution keeps ingress, service logic, and stateful dependencies separated so each layer can scale independently.
Reference flow: Web Clients -> Load Balancer -> API Service -> Primary NoSQL DB -> Redis Cache -> Message Queue -> Background Workers -> Notification Fanout