Design a Personalized Recommendation System
Design the home-feed recommendations for a large consumer app; anchor on a video streaming service with both subscription and ad-supported tiers.
Cover objectives and their trade-offs (engagement, retention, revenue), latency and freshness targets; the end-to-end architecture from event logging through a feature store with offline and online parity, candidate generation, ranking and re-ranking for diversity, deduplication and business rules, to online inference and caching; the models for candidate generation and ranking and how they are retrained; cold start for new users and new titles and how you explore; offline evaluation, online metrics and guardrails and an A/B testing plan; and scale: QPS, storage, sharding, caching, failure modes and graceful degradation.
Hints
Hint 1
Structure the serving path as a funnel: thousands of candidates from several cheap generators, a few hundred scored by a ranking model, a final re-rank that applies diversity and business rules.
Hint 2
The feature store is what keeps training and serving honest: the same feature definitions computed offline for training and served online with bounded staleness.
Hint 3
Cold start is two problems: new users (onboarding signals, popularity priors, fast adaptation within the session) and new titles (content features, a share of exploration traffic).
Asked at
Sign in to talk to the interviewer — ask what's in scope, what scale to design for, or for a nudge when you're stuck. Conversations save to your account.
Sign in to use the assistant — ask what the problem means, get a hint when you're stuck, or have your current work reviewed. Conversations save to your account.