Mock Interviewer

Ask Coach

Ask Coach
Clarify requirements before you design — kept separate from your stage notes.

Tap a question to start, or type your own below.

Recommendation System Design

Visual Problem Diagram

Recommendation System Design architecture diagram

Scenario

You open the home page and expect a row of what people are watching right now. The painful failure is that row still being six hours old, because it was built in a batch and never refreshed, so a show that just took off never appears and revenue dips 3%.

Stuck on where to start? Ask Coach

Clarify this problem here, or open Pathway Coach if you want a prep plan first.

Free Coach trial
How should I start prep?

You open a home page and see a short list picked for you. You can tap an item. You can skip it. You can watch it. Those actions teach the next list. A new person with no history still sees something sensible. A brand-new title can still show up.

You need to explain how you first gather a few thousand possibles and then order a short list. You need to explain what is computed ahead of time and what is computed when the page opens. You need to explain how a new person gets a list with no history. You need to explain how a new title can appear with no history. You need to explain how you sometimes leave a slot for a less obvious item. You need to explain what you serve if the ordering step is slow. The math inside the model can stay thin.

Constraints

Functional

Record what people tap and watch. Train ahead of time. Gather candidate items. Order them. Serve the list. Leave a way to compare two versions of the list.

Non-functional

Most lists are ready in under 100 milliseconds, so they fit inside the home page load. The page itself can still load in about 180 milliseconds while the row is old. A list that is minutes to hours old is acceptable if you say so out loud. The page stays up when ordering is slow.

Scale

About 100 million users and billions of items. The hot action is opening the home page. Gathering candidates runs at millions of requests a second in total, and that read rate dominates. The stored signals are on the order of a terabyte.

Stages ahead

1Requirement Analysis
2API Design
3High-Level Design
4HLD Extensions
5Trade-offs

Not ready to design yet?

Try the free Coach trial — ask how to prep, what to practice first, or how InterviewCrafted works. Sign in when you want to start this problem.

Try Coach free

Log in to start practicing

Preview the problem below. Sign in to start your timed session, save progress, and use the AI coach.

Want full access now? View Pro pricing