internalsGet Pro

Module 16 · Lesson 6 of 15Pro

Candidate generation and ranking: the two-stage design

Level
Intermediate
Topic
Recommendation and ranking systems
Reading time
17 min

When you finish this page you can

  1. Work out why one ranking model can’t score a 20-million-product catalogue in 100 ms, and what two stages cost instead.
  2. Merge several candidate sources into one pool with quotas, deduplication and filters.
  3. Split a 100 ms latency budget across the stages, and say what the row shows when one stage is slow or down.
  4. Judge retrieval by recall and ranking within the pool, and find which stage lost a purchase.

Builds on 4 lessons

Start with lesson 113 min
  1. Recommendation systems: the problem they solve13 min
  2. Content-based recommendations17 min
  3. Serving patterns: batch, online and streaming14 min
  4. Ranking metrics: NDCG, MAP and recall at k16 min

Video lesson · coming soon

Joseph wants the best model on every product

is the online store this course uses as its example. It sells 20 million products to 5 million customers a day. This module works on one prediction: which 20 products to show each customer in the “Picked for you” row. At a festival-sale peak, the row answers about 30,000 requests a second, each within 100 ms.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan