VFlash: Fast, Accurate Visual Planning via Flash Primitive Decoding
u_Unrolled
D11: Production ML Systems · Feature Infrastructure — Point-in-Time Correct, Fresh, Consistent

Feature Infrastructure — Point-in-Time Correct, Fresh, Consistent

15 min read·Advanced· Unrolled Pro
Feature Infrastructure — Point-in-Time Correct, Fresh, Consistent

You already know: feature engineering and target leakage (D3 Feature engineering, ML evaluation); training-serving skew (D10 bridge); partitions, incremental runs and streaming windows (ML pipelines); indexes and key-value lookups (D1 Databases, Data structures).

Why this matters for Atlas. Features are where most production ML bugs live, because the same feature is needed in two very different places: training reads millions of historical rows and must see each one exactly as it was at the time; serving reads one entity's latest values in milliseconds. Built separately, those two paths drift apart (skew), and historical joins quietly leak the future (inflated offline metrics). A feature store is the infrastructure that makes one feature definition serve both paths correctly. This lesson builds its core: point-in-time joins, offline and online stores, freshness, and consistency.


1. Leakage through time: the as-of join

The question. How can a model look great offline and disappoint online when the training code has no obvious bug?

Start from nothing. A training example says: "on date t, given what we knew then, did the student quit in the next 14 days?". Every feature must be computed as of t: using only data with timestamps ≤ t. A naive join attaches each entity's latest feature value instead, which includes data from after t, sometimes including the outcome itself (a student who quit has near-zero recent minutes). That's time travel leakage. The fix is a point-in-time (as-of) join: for each label timestamp, take the most recent feature value at or before it.

That's the preview. The full lesson, with its code and exercises, is part of Unrolled Pro.
Staff AI & Pro Tier Lesson

Unlock "Feature Infrastructure — Point-in-Time Correct, Fresh, Consistent"

The foundations are free forever. Unrolled Pro unlocks the complete lesson, production architectures, and 55 battle-tested ML system design case studies.

Everything included with Pro:
All 234+ Deep-Dive Lessons across transformer internals, inference, RAG & agents
55 Staff-Level ML & System Design Case Studies with mathematical capacity estimates
AI Engineer Sheet & Exercises with worked solutions, self-checks, and code
100 Landmark Research Papers guided walkthroughs & progress tracking
14-Day Money-Back Guarantee — 100% full refund if you aren't satisfied
View Plans & Unlock All Lessons

From ₹167/mo (~$2/mo) · Cancel anytime · Instant activation

100% Risk-Free: 14-day no-questions-asked money-back guarantee