Quick reference
Read it bottom to top: source to serving.
| Layer | What it does | Typical tech |
|---|---|---|
| Event log | Append-only events with an entity key and an event time. | KAFKA / CDC |
| Sources | Event stream, warehouse tables and partner feeds. | STREAM / BATCH |
| Transforms | Versioned definitions, tested on a sample before a backfill. | SQL / PYTHON |
| Offline store | Point-in-time history for training, partitioned by date. | PARQUET / ICEBERG |
| Online store | Low-latency values keyed by entity for the next request. | KV / REDIS |
| Serving | One definition, two readers, and a freshness stamp. | API / SDK |
In one line: Same definition, two clocks. Offline for history, online for the next request; keep them one definition.
Check for skew:
join offline and online on user_id limit 100Explained
Event log
Every event, append-only, with an entity key and an event time. If the event time is wrong, every window downstream is wrong, so validate it at the door.
Sources and transforms
Streams, warehouse tables and partner feeds become versioned definitions. A definition is code: reviewed, tested on a sample, and backfilled only after it passes.
Offline store
Point-in-time history for training. The join must use the feature value as it was at the label time, not as it is today, or the model learns from the future.
Online store
Low-latency values keyed by entity for serving. It is a cache with a contract, not a second source of truth.
Serving
One definition, two readers, and a freshness stamp on the response.
The honest caveat: a feature store adds a system to operate. If you have one model and one table, a well-tested join may be enough; the store earns its keep when several teams reuse the same definition.
The lesson: one definition, two clocks, and a skew test that runs every day.
Your turn: Which feature would break if offline and online disagreed?
Related on this site
More notes: Data & MLOps
- P1011Drift detection from baseline to retire
- P1010Five ways retrieval fails
- P1009LLM cost control without breaking the product
- P1007Five questions before you ship
- P1006A model card people actually read
- P1005The model lifecycle
- P1004Four numbers that make data trustworthy
- P1003Data quality checks that catch breakage
Open in the notes app: search, filters, copy This note on GitHub