Interview practice question
Ranking comments on viral posts
System Design · Design: Social and Messaging · Experienced
Viral posts get 100,000 comments. Showing them by time is useless. How would you design comment ranking?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Score by engagement, recency, author relationship.
- Precompute top comments.
- Wilson score / time decay.
- Friends' comments first.
- Paginate with ranked cursors.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.