3/35
Part 1 of 3 · Freshness tiersLearn

Every feature sits in one of three freshness tiers

The ranker's features don't all change at the same speed, so they don't all need the same machinery.

The tier is how old a value may be when the model reads it

TierPathReaches
batchwarehouse, then a daily joban offline table for training, and the online store
streamingevents, then a stream jobthe online store, and a log for training
requestdevice, hour, the row itselfcomputed per request

All three meet at the ranker.

Every feature the ranker reads takes one of these three paths. Call each path a freshness tier. It's set by how old the value is allowed to be at the moment the model reads it.

TierAge at read timeComputed byStored inExamples in the ranker
Batchhours to a daya scheduled job over the warehousean offline table, bulk-loaded into a key-value storelong-term genre taste, a title's plays over 7 days, daily member and title embeddings
Streamingseconds to minutesan always-on stream processor over eventsan online store updated per event, plus a log for trainingtitles started this session, impressions of a title to this member today, a title's plays in the last 15 minutes
Request-timenonethe serving path, on every requestnowhere, unless you log itdevice, local hour, the row being filled, each candidate's similarity to what the member just browsed