Design Personalized Homepage Row Ranking for a Free Streamer

Last updated: November 29, 2026

Quick Overview

Design the ML system that builds a viewer's homepage: which rows (genres, trending, continue watching, new arrivals) appear, in what order, and which titles fill each row, optimizing for long-term viewing on an ad-supported service.

Tubi
ML System Design
Machine Learning Engineer
Tubi
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

0

0 solved


Design the ML system that builds a viewer's homepage: which rows (genres, trending, continue watching, new arrivals) appear, in what order, and which titles fill each row, optimizing for long-term viewing on an ad-supported service.

The homepage is where most Tubi viewing starts, and its engineers have described moving the personalization path to Scala services backed by ScyllaDB with models published from Spark. The ML design round checks candidate generation, ranking at both row and title level, objectives that match ad revenue, and serving under tight latency on TV clients.

What the Interviewer Expects
  • Splits the problem into candidate generation, title ranking within rows, and row ordering
  • Chooses an objective based on watch time or qualified plays, not clicks
  • Handles logged-out and household viewers and cold-start titles
  • Describes a feature store and serving path within latency limits
  • Plans offline metrics plus online A/B tests with view time as the decision metric
  • Addresses deduplication of titles across rows and content diversity
Key Topics to Cover
Recommender systems
Two-stage ranking
Position bias
Feature stores
Online experimentation
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How would you prevent the same title from appearing in five rows?
  • Licensing expires a title next week. Should the ranker know, and how?
  • How would you correct for the position bias in your own training logs?
  • How would you serve a fresh page within 150ms on a cold app start?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

Inputs: viewer or device history, context (device, time of day, country), catalog with metadata and license windows. Output: an ordered list of rows, each with ordered titles, with no duplicate titles...

High-Level Design

Offline: Spark jobs build features and train models daily, publishing embeddings and model artifacts. Online: (1) candidate generation per row type: two-tower retrieval with approximate nearest neighb...


Submit Your Answer
Markdown supported

Related Questions