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
| Tier | Path | Reaches |
|---|---|---|
| batch | warehouse, then a daily job | an offline table for training, and the online store |
| streaming | events, then a stream job | the online store, and a log for training |
| request | device, hour, the row itself | computed 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.
| Tier | Age at read time | Computed by | Stored in | Examples in the ranker |
|---|---|---|---|---|
| Batch | hours to a day | a scheduled job over the warehouse | an offline table, bulk-loaded into a key-value store | long-term genre taste, a title's plays over 7 days, daily member and title embeddings |
| Streaming | seconds to minutes | an always-on stream processor over events | an online store updated per event, plus a log for training | titles started this session, impressions of a title to this member today, a title's plays in the last 15 minutes |
| Request-time | none | the serving path, on every request | nowhere, unless you log it | device, local hour, the row being filled, each candidate's similarity to what the member just browsed |