Beginner

Introduction to Feature Stores

Understand what feature stores are, why they solve critical ML infrastructure challenges, and how they fit into the modern ML stack.

What is a Feature Store?

A feature store is a centralized platform for storing, managing, and serving ML features. It acts as the bridge between data engineering and data science, ensuring that the features used in training are exactly the same as those used in production inference.

The concept was pioneered by Uber (Michelangelo) in 2017 and has since become a standard component of production ML infrastructure at companies like Airbnb, Spotify, Netflix, and DoorDash.

Why Feature Stores?

🔄

Training-Serving Consistency

Use the same feature computation logic for both training and serving. Eliminate the #1 cause of ML bugs: training-serving skew.

🔄

Feature Reuse

Define a feature once, use it across multiple models and teams. No more duplicate feature engineering across projects.

Low-Latency Serving

Serve precomputed features in milliseconds for real-time inference. No need to compute features at request time.

🕑

Point-in-Time Correctness

Retrieve historical features as they existed at a specific point in time. Prevent data leakage in training datasets.

The Training-Serving Skew Problem

Without a feature store, teams typically compute features differently for training (batch SQL/Python) and serving (real-time application code). This leads to subtle bugs:

  • Logic divergence: Training computes "avg_spend_30d" one way; serving computes it slightly differently.
  • Data leakage: Training uses future data that wouldn't be available at prediction time.
  • Stale features: Serving uses cached features that are hours or days old.
  • Missing features: New features added in training aren't available in the serving path.

Feature Store Landscape

Feature StoreTypeReal-timeBest For
FeastOpen-sourceYesTeams wanting full control, any cloud
TectonManaged SaaSYesEnterprise, complex real-time features
Databricks Feature StoreManagedYesDatabricks users, lakehouse integration
AWS SageMaker Feature StoreManagedYesAWS-native ML workflows
Vertex AI Feature StoreManagedYesGCP-native ML workflows
HopsworksOpen-source/ManagedYesPython-centric, full ML platform

Core Components

  • Feature Registry: Catalog of all features with metadata, ownership, documentation, and lineage.
  • Offline Store: Historical feature storage (data lake, warehouse) for training dataset generation.
  • Online Store: Low-latency key-value store (Redis, DynamoDB) for real-time feature serving.
  • Materialization: Process of computing features and writing them to online/offline stores.
  • Feature Retrieval: APIs for getting features for training (point-in-time joins) and serving (key-value lookups).
Start simple: You don't need a feature store for your first model. Start with a feature store when you have multiple models sharing features, need real-time serving, or have training-serving skew issues. Feast is the easiest way to get started.

Ready to Go Deeper?

Live instructor-led courses from our partners. Affiliate disclosure.