intermediateTop 15 System Design Questions

Design Twitter/X timeline system for 200M daily active users.

Write path: tweet stored in MongoDB; publish TweetCreated event to Kafka Fanout: for users with < 1K followers: push tweetId to each follower's Redis List Celebrities (> 1K followers): no fanout; pull on read and merge with personal timeline Timeline storage: Redis List per user (LPUSH tweetId; LTRIM 0 999 — keep 1000) Read path: LRANGE timeline:userId 0 49 → fetch tweet details from Redis/MongoDB

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

Continue to Design a ride-sharing platform (Uber) with real-time driver location tracking.← Back to all NoSQL questions