Design Session-Aware Next Video Recommendation for Facebook Watch

Last updated: November 29, 2026

Quick Overview

Design a recommender that picks the next video in a Facebook Watch viewing session, adapting in real time to what the user just watched, skipped, or abandoned. Focus on sequence modeling and low-latency feature updates.

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

0

0

0 solved


Design a recommender that picks the next video in a Facebook Watch viewing session, adapting in real time to what the user just watched, skipped, or abandoned. Focus on sequence modeling and low-latency feature updates.

Senior ML candidates at Meta are often pushed beyond static user embeddings toward real-time sequence models. Interviewers look for a design that updates within seconds of an action, handles the cost of transformer-based sequence models at serving time, and defines watch-time objectives that do not reward clickbait.

What the Interviewer Expects
  • Uses an event stream to update session state within seconds
  • Models recent watch history with a sequence model such as a transformer over item embeddings
  • Defines objectives around completion, satisfaction and long-term return, not raw watch time
  • Handles serving cost with caching and staged ranking
  • Discusses offline and online evaluation for sequential recommendations
Key Topics to Cover
sequence modeling
real-time features
watch time objectives
session context
GPU serving
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 do you treat a skip after two seconds versus an abandon at 80 percent?
  • How would you keep the sequence model fresh as the catalog changes hourly?
  • What is your plan if the sequence model adds 40 ms of latency?
  • How would you avoid rabbit holes into borderline content?
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
  • Trigger: the current video nears its end or the user swipes; we need the next 3 to 5 videos queued.
  • Latency: under 150 ms so playback never stalls.
  • Freshness: actions from the last 10 seconds mu...
High-Level Design
  1. Event pipeline: client logs play, progress, skip, like events to a stream; a stateful processor maintains a session record (last 50 items with dwell and action) in a low-latency key-value store...

Submit Your Answer
Markdown supported