mlprep
Hard30 min·4 rounds

How would you design a recommendation system for Reddit?

Written by the mlprep team · Updated

Interviewer Mode
Interviewer

Design the recommendation system that powers Reddit's home feed. A logged-in user lands on their feed — how do you decide which posts to show them, in what order? Walk me through candidate generation, ranking, cold start, and how you'd measure success.

Ready to compare your reasoning?
Interviewer

You mentioned using upvote ratio as a feature — but Reddit's community has very different upvote norms across subreddits. A 90% upvote ratio in r/worldnews means something different than in r/mildlyinteresting. How do you handle this, and what about explicitly controversial posts that generate huge engagement but also huge division?

Ready to compare your reasoning?
Interviewer

Now go one layer deeper on serving. The user opens the app and we have 200ms to return the first page. What does the online architecture look like?

Ready to compare your reasoning?
Interviewer

How do you prevent the feed from becoming a filter bubble while still personalizing strongly?

Ready to compare your reasoning?

The key takeaway unlocks after you reveal an expert answer.

Follow-up Questions to Test Yourself

Interviewers often pivot here once you cover the core concept.

  • How would you detect and mitigate filter bubbles on Reddit — where a user's feed gradually narrows to only one type of content?
  • Walk me through the trade-offs between a two-tower model and a cross-attention model for ranking. When does each win?
  • How would you implement real-time session context — the last 3 things a user upvoted in this session — into your ranker at low latency?

How confident do you feel explaining this?

Track your understanding or flag it to revisit before your next loop.

Related Questions