2/35
Part 1 of 3 · Freshness tiersLearn and do

The running example: a homepage ranker

A Netflix feature infrastructure posting says its platform takes care of computing, storing and serving feature values, for training and for low-latency inference (1 source). An Ads machine learning engineer posting asks for experience running real-time model serving at high QPS (queries per second) with latency under 20 ms (1 source). So picture a ranker at that kind of scale:

Assumed for the rankerValue
Ranking requests per second, at peak20,000
Candidate titles scored per request500
p99 budget for the ranking call150 ms
Member profiles250 million
Titles in the catalog20,000

Every design choice from here on is made for this one ranker, the one that fills a member's homepage. These aren't anyone's real figures. They're round numbers to estimate with. p99 is the time that 99 of every 100 calls finish within. The design method lesson covers how to reach numbers like these in the first minutes of a round.

In the editor, write scores_per_second(rps, candidates) for the ranker's load, and p99(times_ms) for its latency target. The last lines run them on the table's 20,000 requests a second and on 100 call times of 1 to 100 ms.