← Questions

Design a feed recommendation system

0
PerplexityFigmaApple+3AI/ML designLast asked Apr 2026

An AI/ML design interview question asked in Figma's system design round and at Apple, Uber and 3 more companies, last asked Apr 2026. It tests recommendations, ranking and embeddings.

Rank the items in each user's home feed so they engage more. Candidates number in the millions, and the feed must load within a couple of hundred milliseconds.

Requirements

  • Functional: for each user, pick and order the items shown in the feed; mix in fresh items and new creators; respect hidden and blocked content.
  • Non-functional: p99 latency of about 200 ms per feed request; tens of millions of users; models updated often enough to follow trends.

Clarifying questions

  • What does "engage" mean here: clicks, time spent, saves, follows, or a mix? Which matters most to the business?
  • What are the items: posts, files, templates, people?
  • How much history do we have per user, and how many users are new?
  • Are there constraints such as diversity, freshness or creator fairness?

What a strong answer covers

  • The funnel: candidate generation (two-tower embeddings with approximate nearest-neighbour search, plus follows, popular and fresh items) to a few thousand, a light ranker, then a heavy ranker on a few hundred, then re-ranking for diversity and rules.
  • Labels and the objective: several engagement predictions combined into one score with tuned weights, and the bias in labels from what was shown before.
  • Features: user history, item content and popularity, user-item interactions, context; served from a feature store with the same code online and offline.
  • Cold start for new users and new items, and exploration so new items get a chance.
  • Evaluation: offline AUC and NDCG, then online A/B tests on the engagement metric and guardrails (hides, reports, session length), and the gap between the two.

Follow-ups

  • Engagement goes up but users complain the feed is repetitive. What do you change?
  • How do you keep latency under 200 ms when the heavy ranker gets bigger?
  • How would you detect and stop the feed from rewarding clickbait?

Where it's asked

  • Figma · System design · Last asked Apr 2026Design discussion; one or two rounds
  • Apple · Technical phone screen · Last asked Mar 2026
  • Uber · Technical phone screen · Last asked Mar 202660 min · One medium problem with a follow-up, or two short ones; sometimes object-oriented design
  • Google · First round: coding · Last asked Dec 202545 min · Coding in a Google Doc, no syntax highlighting or autocomplete · No AI
  • Perplexity · ML / LLM design · Last asked Sep 202560 min · Design discussion
  • OpenAI · Technical screen: coding · Last asked Aug 202560 min · One problem in three to five growing parts filling the hour, usually in CoderPad; ML roles get a Colab notebook with autocomplete off · No AI assistants or autocomplete; documentation is fine

What it tests

recommendations · ranking · embeddings

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing