Why real-time features
What it is
Some predictions depend on what happened in the last few seconds or minutes:
- fraud: this card was used in three cities in the last ten minutes;
- delivery time: forty orders are waiting at this store right now;
- recommendations: the user just added pasta, so suggest sauce;
- surge pricing: demand in this area has doubled in fifteen minutes.
A nightly batch cannot know any of this.
Why it matters
For these products, freshness is accuracy.
- A fraud model that only knows yesterday's activity misses an attack happening now.
- A delivery estimate that ignores the current queue is wrong exactly when it matters most, at the rush.
- Measure the gain: train with the feature computed fresh and computed a day old, and compare.
In the real world: Kirana Kart's experiments show the live store-queue feature cuts delivery-time error at peak hours by about a fifth, which justifies the streaming job behind it.
Assuming fresher is always better. If a feature's value barely changes within a day, streaming it adds cost and failure points for no gain.