Problem
A video platform with more than a billion videos serves item-to-item (I2I) recommendations: for each video a user watched (an anchor), a ready list of similar videos is looked up at runtime. The old system built lists only for a small set of popular anchors, delivered them slowly, used compute inefficiently and differed a lot from the main recommendation stack. A full recomputation would take almost a week at the target rate of 2000 anchors per second, too slow for fresh content.
Example from the article: in VK Video, the old scheme used about 6000 cores to reach roughly three-hour freshness of I2I recommendations.
Solution in brief
Recommendations for each anchor are built offline by a scheduler that calls a recommender service. The scheduler gives each anchor a priority that grows with recent impressions and popularity and decays with age, and recomputes high-priority anchors more often. Candidates are filtered by relevance and ranked by attractiveness. Results go to a data store, and the best anchors are also kept in server memory.
Questions this case answers
- How to keep offline-precomputed item-to-item recommendations fresh when the item catalog is too large to recompute in a reasonable time
- How to serve precomputed per-item recommendation lists at very high request rates when only a small share of items needs to sit in server memory
- How to keep precomputed item-to-item recommendations fresh (about an hour) for a catalog of more than a billion videos?
- How to decide which anchor items to recompute first when a full pass takes almost a week?
Tools and methods
- Anchor-based I2I lists — similar items precomputed per static anchor.
- Relevance filter and attractiveness ranker — quality control, then ordering by interactions.
- Priority-driven scheduler — decides which anchors to recompute and how often.
- Per-criterion lists — content and collaborative lists, blended at runtime.
- In-memory snapshots — hot anchors in server memory, the rest from stores.
Google or a one-time email code. No password.