Explain it in 60 seconds
Designing a like button at scale
System Design · Design: Social and Messaging · Beginner
How would you store likes on posts in a social network with huge traffic?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Like records: (user_id, post_id) unique.
- Separate like count per post.
- Counter updated async or sharded.
- Cache counts.
- Check "did I like this" quickly.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.