Design: Social and Messaging interview questions
100 System Design practice questions. Read what a strong answer covers, then practise it out loud against the clock.
Practise Design: Social and Messaging questionsBeginner
- 301 vs 302 redirects for short links
- Chronological vs ranked feeds
- Click analytics for short links
- Components of a notification system
- Core components of a chat app
- Design a rate limiter for an API
- Design a URL shortener
- Design search autocomplete
- Designing a like button at scale
- End-to-end encryption in chat
- Expiring short links
- Fan-out on write vs fan-out on read
- Generating short keys
- Group chat delivery
- Handling photo uploads in a social app
- How a URL shortener works
- How search autocomplete works
- Infinite scrolling feed
- Messages to offline users
- Online presence indicators
- Respecting notification preferences
- Sent, delivered and read receipts
- Simple news feed for a small app
- Spam in comments
- Storing a user's own posts
- Storing followers and following
- Storing threaded comments
- Supporting custom aliases
- Too much presence traffic
- Trending topics
- Typing indicators
- Unread message counts
- What a news feed system does
- Where to place a rate limiter
Intermediate
- Activity notifications aggregation
- Adding emoji reactions to messages
- Avoiding duplicate notifications
- Caching strategy for a URL shortener
- Chat history retention
- Chat message storage model
- Choosing a rate limiter algorithm
- Content moderation pipeline
- Design a notification system
- Design a one-to-one chat system
- Design a Twitter-like home timeline
- Design trending hashtags
- Designing 24-hour stories
- Feed for a brand-new user
- Follower counts at scale
- Handling @mentions
- Handling celebrities in feeds
- In-app notification inbox
- Keeping feeds fresh after unfollows
- Live comments on a popular livestream
- Memory cost of precomputed timelines
- Notification templates and localisation
- Notifying millions about a live event
- Ordering messages in a conversation
- Personalised and fresh autocomplete
- Rate limiter store goes down
- Scaling key generation
- Searching posts in a social network
- Sending images and videos in chat
- Separating connection gateways from chat logic
- Syncing chats across multiple devices
- Time-sortable IDs for posts and messages
- Very large group chats
Experienced
- Adding voice and video calls to a chat app
- Celebrity post causes read spike
- Chat consistency across regions
- Daily digest at scale
- Deleted post still shows in feeds
- Delivery guarantees for notifications
- Design Instagram's feed and media pipeline
- Design WhatsApp at full scale
- End-to-end encryption for group chats
- Enforcing privacy settings in feeds
- Estimating feed infrastructure
- Feed ranking architecture
- Fighting spam in a messaging app
- Global low-latency redirects
- Global social network across regions
- Globally distributed rate limiting
- Inserting ads into the feed
- Marketing blasts delay security alerts
- Moderating live chat in real time
- People search with typos
- People-you-may-know at scale
- Presence at very large scale
- Provider throttling and adaptive sending
- Ranking comments on viral posts
- Scaling a trie for autocomplete
- Searching chat history
- Slow client in a busy group chat
- Smart send-time for notifications
- Social graph serving at Facebook scale
- Testing a new feed algorithm
- URL shortener used for phishing
- User doesn't see their own new post
- Write amplification in fan-out feeds