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 Store | Type | Real-time | Best For |
|---|---|---|---|
| Feast | Open-source | Yes | Teams wanting full control, any cloud |
| Tecton | Managed SaaS | Yes | Enterprise, complex real-time features |
| Databricks Feature Store | Managed | Yes | Databricks users, lakehouse integration |
| AWS SageMaker Feature Store | Managed | Yes | AWS-native ML workflows |
| Vertex AI Feature Store | Managed | Yes | GCP-native ML workflows |
| Hopsworks | Open-source/Managed | Yes | Python-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).
Ready to Go Deeper?
Live instructor-led courses from our partners. Affiliate disclosure.
AI & ML Courses - 30% Off
Live instructor-led AI, machine learning, data science, and cloud courses for working professionals. Use code Limited30 at checkout.
EdurekaDataCamp - AI & Data Science
Hands-on Python, machine learning, and AI courses with interactive exercises and real projects.
DataCampedX - Top AI Courses
University-level AI courses from MIT, Harvard, Stanford. Earn certificates that employers recognize.
edX