Feast is an open-source feature store that registers, stores and serves machine learning features so that the same feature definitions feed both model training and online inference. In MLOps & deployment, it sits between data pipelines and models: it does not usually compute features itself, but it makes features already produced by batch or streaming jobs discoverable, versioned and retrievable with point-in-time correctness.
The project started in 2019 as a collaboration between Gojek and Google Cloud and later became part of the LF AI & Data Foundation. Its design favors a thin, pluggable layer over existing infrastructure such as a data warehouse and a key-value database, rather than a fully managed platform with its own compute engine.
How the Feast feature store is organized
Feast is organized around a declarative feature repository: Python files that describe entities, data sources and feature views, plus a configuration file named feature_store.yaml. Running feast apply reads these definitions and writes them into a central registry, which every client then uses as the single source of truth.
Behind the registry, Feast relies on two storage tiers. The offline store holds long feature histories for training, while the online store keeps only the latest value per entity key for fast lookups. The table below summarizes the main building blocks.
| Object | What it defines | Typical example |
|---|---|---|
| Entity | The join key that features describe | customer_id, driver_id |
| Data source | Where raw feature rows live | Parquet files, BigQuery table, Kafka push |
| Feature view | A group of features with schema and TTL | Seven-day order statistics |
| On-demand feature view | Transformation run at request time | Ratio of request amount to average |
| Feature service | Named set of features used by one model | fraud_model_v3 inputs |
| Registry | Catalog of all applied definitions | File in object storage or SQL database |
Materialization moves data from the offline to the online store. The commands feast materialize and feast materialize-incremental load the newest values inside a time window, and teams usually schedule them with an orchestrator such as Airflow. Streaming updates can bypass this step through a push source that writes rows directly to the online store.
Point-in-time joins and training-serving consistency
The central guarantee of Feast is point-in-time correctness. When a data scientist calls get_historical_features with an entity dataframe of keys and event timestamps, Feast joins each row only with feature values that were known at that timestamp, respecting each feature view’s time-to-live (TTL). This prevents data leakage, where a model silently trains on information from the future.
At inference time, get_online_features returns the same named features from the online store, typically within single-digit milliseconds for key-value backends such as Redis. Because both paths read from one shared definition, Feast directly reduces training-serving skew, one of the most common causes of degraded production accuracy.
| Aspect | Historical retrieval | Online retrieval |
|---|---|---|
| API call | get_historical_features | get_online_features |
| Purpose | Build training and evaluation datasets | Feed live predictions |
| Data returned | Values valid at each event time | Latest materialized value |
| Typical latency | Seconds to minutes | Milliseconds |
| Typical backends | BigQuery, Snowflake, Redshift, Spark, files | Redis, DynamoDB, Bigtable, PostgreSQL, SQLite |
Feast compared with other feature management approaches
Feast is best understood as a feature serving and registry layer, not a complete data platform. It differs from managed feature stores that also schedule and execute transformations, and from ad hoc approaches where every team writes its own lookup code.
| Approach | Feature computation | Operational burden | Lock-in |
|---|---|---|---|
| Feast | Mostly external pipelines | Team runs stores and jobs | Low, pluggable backends |
| Managed cloud feature store | Often built in | Low, provider operated | Tied to one cloud |
| Commercial feature platform | Built-in batch and streaming | Low to moderate | Vendor dependent |
| Hand-written lookups | Ad hoc scripts | High and inconsistent | None, but fragile |
In the wider MLOps toolchain, Feast complements a training pipeline, a model registry and serving frameworks such as KServe or BentoML. The feature pipeline produces data, Feast stores and serves it, and the inference pipeline consumes it through the online API or the optional Feast feature server, which exposes retrieval over HTTP.
Deploying Feast in practice
A practical Feast deployment starts by choosing backends that the organization already operates. Teams with a warehouse usually keep it as the offline store and add a managed key-value database online. Small projects can begin with local files and SQLite, then swap providers by editing configuration rather than feature code.
| Situation | Recommended choice | Reason |
|---|---|---|
| Prototype on a laptop | File offline store, SQLite online | Zero infrastructure to manage |
| Warehouse-centric analytics team | Warehouse offline, Redis or DynamoDB online | Reuses existing data and access control |
| Several teams share features | SQL registry with CI-driven feast apply | Safe concurrent updates and review |
| Near-real-time signals needed | Push source from a stream processor | Fresh values without batch delay |
| Simple request-derived inputs | On-demand feature view | Avoids storing trivial derived values |
Mature teams treat the feature repository like application code: definitions live in Git, pull requests trigger validation, and a CI job runs feast apply against the shared registry. This practice gives feature lineage and reviewability that informal notebooks cannot provide.
Limitations and common mistakes
Feast solves consistency and serving, but it leaves feature computation, monitoring and data quality largely to other tools. Teams that expect a turnkey platform are often surprised by the amount of surrounding infrastructure they still own.
- Stale online values: materialization jobs fail silently or run too rarely, so predictions use outdated features.
- Wrong TTL settings: a TTL that is too short returns empty values; one that is too long admits outdated data into training rows.
- Unpinned feature references: models request loose feature lists instead of a versioned feature service, so silent schema changes break inference.
- Heavy on-demand logic: complex request-time transformations add latency and belong in upstream pipelines.
- No drift monitoring: Feast does not detect data drift, so a separate observability tool is still required.
Stripped to the essentials
Machine learning models learn from facts about customers, products or events. These facts are called features. Feast keeps those facts in order. It records what each feature means and where it lives.
When a model is trained, Feast hands it the facts exactly as they looked on each past date. When the model makes a live decision, Feast hands it the newest facts in a few milliseconds. Both moments use the same recipe, so the model sees familiar inputs in production. Think of it as a shared pantry with labeled shelves that every cook uses.
Where it is applied
A food delivery company predicts delivery times for every order. Its data team computes features such as average preparation time per restaurant over the last seven days and courier speed in the past hour. Batch jobs write these values to a data warehouse, and a stream processor pushes courier updates every minute.
The team defines restaurant and courier entities in a Feast repository, uses the warehouse as the offline store and Redis as the online store. Training datasets come from get_historical_features with order timestamps, so no future information leaks in. The ordering service calls the online API and receives features in under ten milliseconds.
Before Feast, training and production used separately written queries, and estimates drifted by several minutes. After the switch, training-serving skew disappeared as a source of error, and new models reused existing features instead of rebuilding them.