33/35
Part 3 of 3 · Serving and driftLearn and do

Three more follow-ups

Is real-time worth it for this feature?

Run the staleness ablation and price both sides. Say going from daily to 5 minutes buys a clear offline gain, on a metric that has tracked online results before. Then estimate the stream's state and compute, and make the call. If the curve is flat, keep it daily and say why.

How do you add a feature without waiting weeks for logs?

  1. Backfill it from logged facts or the warehouse with a point-in-time join. Train, and compare offline.
  2. Ship it to serving in shadow mode: compute it and log it, but don't feed it to the model.
  3. Compare the shadow values with the backfill on the same requests.
  4. Once they agree, start training on the logged values as they pile up, and switch the model over.

Why not compute everything at request time?

Because latency and CPU grow with candidates times features. And because history doesn't fit in a request. A 90-day taste profile needs 90 days of events, and that's what the batch and streaming tiers are for. Request time is for what the request knows, and for what's cheap to compute from data already fetched.

In the editor, write topic_at(plan, minute) and start_of(plan, topic). PLAN is the walkthrough as (topic, minutes) blocks in order, so each block starts where the one before it ends.