Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Design Facebook Feed Recommender

HardSystem Design00:00
I
Practice interviewer
In session
5 left
00:00

Your question is Design Facebook Feed Recommender. Take a moment with it on the right.

Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).

You need to log in / sign up to chat or submit.

Problem

Product Context

Design the machine learning system behind Facebook Feed ranking for logged-in users. The goal is to generate a personalized ranked set of posts from friends, Groups, Pages, and recommended content while balancing engagement, freshness, and safety.

Scale

SignalValue
DAU350M Feed users
Peak Feed request QPS2.2M
Candidate post universe3B active posts over 30 days
New posts/day180M
Per-request p99 latency budget180ms
Feed items returned/request20-50

Task

  1. Clarify the product objective, primary prediction target, and key constraints for Facebook Feed.
  2. Propose an end-to-end architecture covering candidate retrieval, ranking, and re-ranking at Meta scale.
  3. Define what should run in batch versus online, including feature computation, model inference, and index refresh.
  4. Choose models for each stage and justify them with latency, quality, and cost tradeoffs.
  5. Explain how you would evaluate the system offline and online, including guardrails.
  6. Identify major failure modes, especially around feature drift, training-serving skew, and stale or biased recommendations.

Constraints

  • Must support both heavy users and cold-start users with limited interaction history.
  • Fresh posts should become eligible within minutes, not hours.
  • Serving cost matters: the most expensive model cannot score millions of candidates per request.
  • Must respect policy filters such as blocked accounts, integrity constraints, and locale/language restrictions.
  • Assume some labels are delayed or noisy (for example, meaningful engagement may arrive after impression time).
  • The system should degrade gracefully if a model, feature service, or ANN index is unavailable.