KatInterview

Building Dual-Surface Content Recommendation Systems

Machine LearningModel answer
MediumModel answerMachine Learningrecommendation-systemsrankingpersonalization

Last updated

Design a recommendation platform that serves both an on-demand content feed and selective push notifications, balancing relevance with user attention costs.

You're building a content discovery platform that needs to serve recommendations through two different channels:

  1. Content Feed: Users browse a personalized stream whenever they open the app
  2. Push Notifications: The system proactively alerts users about particularly relevant content

Both channels draw from the same content corpus but operate under different constraints. The feed can show many items with low individual cost per impression, while each notification consumes user attention and risks causing annoyance or opt-outs.

Scale and Constraints

  • 100 million daily active users
  • Billions of content items, with millions added daily
  • Feed requests must complete in under 200ms (p99)
  • Notification budget: 0-3 per user per day
  • Content signals (likes, saves, dismissals) should influence recommendations within minutes
  • Support users and content with no prior interaction history

What to Design

Describe how you would architect this system, covering:

  1. Feature Engineering Pipeline: How do you generate features for both batch training and real-time scoring?
  2. Retrieval and Ranking: How do you select candidates and score them for each surface?
  3. Exploration vs Exploitation: How do you balance showing familiar content against discovering new interests?
  4. Notification Decision Logic: How do you decide whether a piece of content merits interrupting the user?
  5. Metrics and Safeguards: How do you measure success and prevent degrading the user experience?

Hints

Hint 1

Consider that notifications have a real cost—users can disable them entirely. How does this change your optimization objective compared to feed ranking?

Hint 2

New content and new users arrive continuously. Your retrieval strategy needs to surface items with no engagement history yet.

Hint 3

User actions like 'hide' or 'not interested' are rare but carry strong signal. How should your model weigh these compared to positive actions?