Feature stores are often presented as a required part of a modern ML platform. For some organisations they are essential; for many others, a well-designed set of data pipelines and a shared feature library deliver the same benefits with far less to operate. The right choice depends on what problems you actually have—so this guide starts with the problems, not the product.
Decision path
- Batch only?Pipelines + warehouse tables usually suffice
- Online serving?Low-latency features at prediction time
- Skew problems?Training and serving computed differently
- Reuse across teams?Same features rebuilt many times
- Feature storeWhen several of these hurt at once
What a feature store actually provides
- An offline store of historical feature values for building training datasets with point-in-time correctness.
- An online store with low-latency lookups of the latest feature values at prediction time.
- Shared feature definitions so the same logic feeds training and serving.
- A registry for discovery, ownership, and reuse across teams.
- Materialisation jobs that keep the online store in sync with the offline source.
The problems that justify one
Training–serving skew
If a feature like “number of purchases in the last 30 days” is computed in SQL for training and reimplemented in application code for serving, the two will drift. Models then perform worse in production than in evaluation, and the cause is hard to find. A feature store's shared definitions eliminate this class of bug.
Point-in-time correctness
When building training data, each label must be joined only with feature values known at that moment. Joining today's values to last year's labels leaks future information into training and produces models that look excellent offline and fail in production. Feature stores implement point-in-time joins automatically; doing it by hand is possible but easy to get wrong.
-- For each label event, take the latest feature row at or before that time
SELECT l.customer_id,
l.label_time,
l.churned,
f.purchases_30d,
f.avg_order_value_90d
FROM labels l
LEFT JOIN LATERAL (
SELECT purchases_30d, avg_order_value_90d
FROM customer_features cf
WHERE cf.customer_id = l.customer_id
AND cf.feature_time <= l.label_time
ORDER BY cf.feature_time DESC
LIMIT 1
) f ON TRUE;Low-latency online features
Real-time models—fraud scoring, recommendations, dynamic pricing—need features within milliseconds at prediction time. Querying a warehouse is too slow. An online store backed by a key-value database such as Redis or DynamoDB serves the latest values quickly, and materialisation keeps it consistent with the offline definitions.
Reuse across many teams
When several teams independently compute customer lifetime value or account age, each with slightly different logic, a registry of owned, documented features saves effort and reduces inconsistency.
When better pipelines are enough
If your models score in batch—nightly churn predictions written to a table, weekly demand forecasts—you do not need an online store. A disciplined approach covers the rest: features defined once as versioned SQL or dbt models, point-in-time snapshots or slowly changing dimension tables for training, data tests on every run, and the same tables used by both training and batch scoring. That is far simpler to operate than a feature store, and many teams run successfully this way for years.
- Define each feature once in version-controlled transformations, with an owner and documentation.
- Keep historical snapshots or validity intervals so training can reconstruct past values.
- Run data quality tests on every pipeline run.
- Have training and batch scoring read the same feature tables.
- Add a lightweight catalog entry for discoverability.
How does your cloud measure up?
Score your setup across foundation, delivery, reliability, security, and cost in 3 minutes—instant results, no email needed.
What adopting a feature store looks like
Options include open-source Feast, managed offerings such as Amazon SageMaker Feature Store, Vertex AI Feature Store, and Databricks Feature Store, and commercial platforms. Feast illustrates the model well: you declare entities, sources, and feature views in code, and the framework handles offline retrieval and online materialisation.
from datetime import timedelta
from feast import Entity, FeatureView, Field, FileSource
from feast.types import Float32, Int64
customer = Entity(name="customer", join_keys=["customer_id"])
customer_activity = FileSource(
path="s3://ml-features/customer_activity.parquet",
timestamp_field="feature_time",
)
customer_features = FeatureView(
name="customer_features",
entities=[customer],
ttl=timedelta(days=90),
schema=[
Field(name="purchases_30d", dtype=Int64),
Field(name="avg_order_value_90d", dtype=Float32),
],
source=customer_activity,
online=True,
)The cost is operational: an online store to run and secure, materialisation jobs to monitor, freshness to track, and another system in the critical path of real-time predictions. Budget for that ownership before adopting one.
A pragmatic path
- Start with shared, tested, version-controlled feature transformations and point-in-time training datasets.
- Measure training–serving skew by comparing online and offline values for sampled entities.
- Introduce an online store only for the models that need real-time features.
- Adopt a full feature store when online serving, reuse, and skew problems coincide across several teams.
- Whichever route you choose, give features owners, documentation, and freshness monitoring.
Streaming features
Some real-time models need features computed from events seconds old—transactions in the last five minutes, clicks in the current session. These require streaming pipelines with tools such as Apache Flink, Spark Structured Streaming, or Kafka Streams writing to the online store, and they are the most expensive features to build and run. Before committing to them, check whether a slightly stale feature (refreshed every few minutes) gives most of the model benefit. Often it does, and a micro-batch job is dramatically simpler.
Freshness and monitoring
Whatever architecture you choose, features need monitoring like any production data. Track freshness—how old the newest value is—for every feature group, alert when materialisation jobs fail or lag, and monitor distributions for unexpected shifts. A stale online store silently degrades every prediction that reads from it, and the model monitoring dashboards may not show why.
Questions to ask before buying or building
- Which models need online features, and what latency do they require?
- How many teams would share features, and do they agree on definitions?
- Do we already have reliable batch pipelines, data tests, and a catalog?
- Who will operate the online store, materialisation jobs, and their on-call?
- How will features be versioned when their logic changes?
Governance for shared features
Once features are shared, they become a dependency like any API. Give each feature group an owner, a description of how it is computed, its freshness guarantee, and any restrictions on use—for example, features derived from personal data that may only be used for specific purposes. Version feature logic so a change does not silently alter every model that consumes it: publish a new version, let consumers migrate, and retire the old one on a schedule. Record which models use which features so you can assess the impact of a change or a data incident in minutes rather than days.
Whichever route you take, write down the decision and the conditions that would change it. Revisiting it when real-time use cases appear is far cheaper than living with a platform nobody needs.
Checklist
- Clear inventory of which models are batch and which are real-time.
- Single definitions for each feature, used by training and serving.
- Point-in-time correct training datasets.
- Data quality tests and freshness monitoring on feature pipelines.
- An online store only where latency requires it.
- Ownership and discoverability for shared features.
The goal is consistent, correct features—not a particular product. We help ML teams choose the simplest architecture that removes their real bottlenecks, then build it on their cloud of choice.
Key takeaways
- Fix pipeline reliability and versioning before buying a feature store.
- Feature stores shine when many products share features and skew hurts.
- Monitor feature freshness and distributions like production SLIs.
FAQ
When is a feature store premature?
When you have one or two models, unstable training jobs, and no shared feature reuse. Pipelines and evaluation will unblock you sooner.
What problem does a feature store actually solve?
Consistent training/serving features, discovery/reuse across teams, and governance of feature definitions—not magic accuracy gains.