Feast · feature store

On this page 7

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.

ObjectWhat it definesTypical example
EntityThe join key that features describecustomer_id, driver_id
Data sourceWhere raw feature rows liveParquet files, BigQuery table, Kafka push
Feature viewA group of features with schema and TTLSeven-day order statistics
On-demand feature viewTransformation run at request timeRatio of request amount to average
Feature serviceNamed set of features used by one modelfraud_model_v3 inputs
RegistryCatalog of all applied definitionsFile in object storage or SQL database
Core Feast objects and their roles

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.

AspectHistorical retrievalOnline retrieval
API callget_historical_featuresget_online_features
PurposeBuild training and evaluation datasetsFeed live predictions
Data returnedValues valid at each event timeLatest materialized value
Typical latencySeconds to minutesMilliseconds
Typical backendsBigQuery, Snowflake, Redshift, Spark, filesRedis, DynamoDB, Bigtable, PostgreSQL, SQLite
Offline and online retrieval compared

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.

ApproachFeature computationOperational burdenLock-in
FeastMostly external pipelinesTeam runs stores and jobsLow, pluggable backends
Managed cloud feature storeOften built inLow, provider operatedTied to one cloud
Commercial feature platformBuilt-in batch and streamingLow to moderateVendor dependent
Hand-written lookupsAd hoc scriptsHigh and inconsistentNone, but fragile
Where Feast fits among feature management options

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.

SituationRecommended choiceReason
Prototype on a laptopFile offline store, SQLite onlineZero infrastructure to manage
Warehouse-centric analytics teamWarehouse offline, Redis or DynamoDB onlineReuses existing data and access control
Several teams share featuresSQL registry with CI-driven feast applySafe concurrent updates and review
Near-real-time signals neededPush source from a stream processorFresh values without batch delay
Simple request-derived inputsOn-demand feature viewAvoids storing trivial derived values
Configuration choices by situation

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.