---
title: "Recommendation System Design Interview: A Complete Answer in 6 Steps — Igor Shalamov"
url: https://igorshalamov.com/writing/recommendation-system-design-interview/
language: en
author: Igor Shalamov
updated: 2026-11-21
---

# Recommendation System Design Interview: A Complete Answer in 6 Steps

[Igor Shalamov](https://igorshalamov.com/about/), an AI systems architect and founder of Shalamov.io. 5 December 2026, 3 min read.

The interviewer says: design the recommendations for a video app. You have 45 minutes, and most candidates start by drawing a model. That is the mistake that sinks the interview. Strong candidates follow a structure, and this one has six steps, about five to seven minutes each:

1. **Goal**: the metric and the users.
2. **Scale**: requests per second and catalogue size.
3. **Design**: retrieval, ranking and re-ranking.
4. **Data**: features and labels.
5. **Evaluation**: offline metrics, then an A/B test.
6. **Risks**: where the design breaks, and the trade-offs.

## Step 1: clarify the goal

Never start designing before you agree on the goal. Ask three questions.

- **What are we optimising?** Clicks are easy to game, so agree on watch time or long-term retention.
- **Who are the users?** If new users matter, cold start is part of the design.
- **What are the constraints?** For example, 200 milliseconds per request, and new videos every day.

## Step 2: put numbers on it

These are example numbers, so state your assumptions out loud.

- 100 million daily users, 10 feed loads each: 1 billion requests a day.
- 1 billion divided by 86,400 seconds in a day: about 12,000 requests per second.
- Peak traffic is around 3 times the average: about 35,000 requests per second.
- 10 million videos in the catalogue.

These numbers decide the design: you cannot score 10 million videos 35,000 times a second.

## Step 3: retrieval, ranking, re-ranking

Draw this diagram first. Everything else hangs on it.

1. **Retrieval** narrows 10 million videos to about 1,000, from several sources, such as a [two tower model](https://igorshalamov.com/writing/two-tower-model-explained/) and fresh uploads.
2. **Ranking** scores those 1,000 with a heavy model that predicts watch time and keeps about 100.
3. **Re-ranking** applies the rules: diversity, freshness, no repeats.

The feed shows the top 20. Explain why the stages exist: each stage is cheaper per item than the next, and the next one sees fewer items.

## Step 4: features and labels

- **User features**: watch history, language, device.
- **Video features**: topic, creator, age, and content embeddings.
- **Context**: time of day and network quality.

The label: did the user watch more than half of the video? Clicks alone reward clickbait. Negatives are videos that were shown but skipped. Log features at serving time, so training sees exactly what production saw.

## Step 5: offline, then online

Evaluate in two layers. Offline, measure Recall@K for retrieval and nDCG for ranking, on a split by time; [how to evaluate recommendation systems](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/) explains both. Online, run an A/B test, because offline gains often vanish in production.

In a made-up test, the control group on the current system watches 41 minutes a day. With the new ranker, it is 43. The two extra minutes are the headline. Also check the guardrails: user reports, creator diversity and latency.

## Step 6: risks and trade-offs

Show that you know where the design breaks.

- **Cold start.** New videos have no history. Add content features and a dedicated source for fresh uploads; the trade-off is covered in [collaborative vs content based filtering](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/).
- **Feedback loops.** The model only learns from what it showed, so popular videos get more popular. Reserve a small share of slots for exploration.
- **Latency.** The ranker blows the budget at peak. Cache results, precompute user vectors, or distil the ranker into a smaller one.

## What interviewers score

- You agreed on the goal before designing.
- You used numbers to justify the architecture.
- You split the problem into stages.
- You knew offline metrics are not enough.

## Beyond the interview

The same six steps work for search, ads and referral systems. In a [referral system](https://igorshalamov.com/writing/referral-system-is-a-recommender-system/), the inviter is the query and possible invitees are the items. I use this structure when I design [AI growth systems](https://igorshalamov.com/writing/what-is-an-ai-growth-system/).

## Related research

The research behind this topic is my paper [Neural network architectures for automating user funnels in referral marketing](https://igorshalamov.com/research/neural-architectures-referral-funnels/) (2025).

![Igor Shalamov](https://igorshalamov.com/press-kit/igor-shalamov-160.jpg)

[Igor Shalamov](https://igorshalamov.com/about/) is an AI systems architect who designs AI growth systems: referral and recommendation systems, AI-driven communication automation, semantic search and classification. He founded Shalamov.io and publishes [research](https://igorshalamov.com/research/) on semantic search and neural classification.

## More notes

- [Collaborative Filtering vs Content Based Filtering: When to Use Each](https://igorshalamov.com/writing/collaborative-vs-content-based-filtering/)
- [Two Tower Model Explained: Recommendation Retrieval at Scale](https://igorshalamov.com/writing/two-tower-model-explained/)
- [How to Build a Referral Program That Brings Users Who Stay](https://igorshalamov.com/writing/how-to-build-a-referral-program/)
- [How to Evaluate Recommendation Systems: Precision@K, nDCG and A/B Tests](https://igorshalamov.com/writing/how-to-evaluate-recommendation-systems/)
- [Semantic Search vs Keyword Search: How Embeddings Find Meaning](https://igorshalamov.com/writing/semantic-search-vs-keyword-search/)

Subscribe: [RSS feed](https://igorshalamov.com/writing/feed.xml). All notes: [Writing](https://igorshalamov.com/writing/).

---

Canonical page: https://igorshalamov.com/writing/recommendation-system-design-interview/. Author: Igor Shalamov, AI systems architect who designs AI growth systems. Site guide for AI assistants: https://igorshalamov.com/llms.txt
