Feature Store Bootstrap
Feature store patterns using Feast, feature engineering pipelines, and offline/online serving configurations.
📄 Product Preview
Try the interactive reader and demo tools below, or get the full product with all content unlocked.
📖 Interactive Reader (Free Preview) ⚙ Try Demo Tools 📦 Download Free Sample📁 File Structure 17 files
📖 Documentation Preview README excerpt
Feature Store Bootstrap
A production-shaped [Feast](https://feast.dev) feature store you can read,
run, and adapt in an afternoon. It ships a complete, tested feature repository
for an anonymised retail-risk domain ("AcmeCorp") -- entities, batch and
streaming sources, on-demand transformations, and two feature services (a
real-time fraud model and a batch churn model) -- plus a small,
unit-tested helper library that wraps the Feast read/write APIs the way a real
team would.
This is not a hello-world. The feature logic is separated from the Feast
wrappers so it has real test coverage, the helpers are dependency-injected so
they test without a running store, and the guides explain the why behind
point-in-time correctness, train/serve skew, TTLs, and push-vs-batch ingestion.
Features
- Complete Feast repository -- 2 entities, 3 batch feature views, a request
source, a push source, an on-demand feature view, and 2 feature services.
- A reusable helper library (
src/feature_store/) for ingestion, retrieval,
and registry management -- not just inline repo code.
- Point-in-time correct training retrieval driven by a
FeatureServiceso
training and serving never drift.
- Streaming + batch ingestion via
materialize_*and aPushSource. - On-demand (request-time) features with the maths factored into pure,
unit-tested functions.
- Two runnable examples that generate their own data and run end to end.
- Two test suites -- most tests run with just
pytest(no Feast needed)
thanks to dependency injection; the rest importorskip their dependency.
- Two in-depth guides: setup and feature-engineering patterns.
Prerequisites
- Python 3.9+
feast0.30+ (pip install "feast[redis]")pandasandpyarrow(for the parquet examples)- Redis for the online store *(optional -- the config includes a zero-install
SQLite alternative)*
python -m venv .venv && source .venv/bin/activate
pip install "feast[redis]" pandas pyarrow pytest
Quick Start
# 1. Apply the feature definitions to a fresh registry.
cd feature_repo
feast apply
# 2. Run the full write + serve example (generates sample data, materializes,
# pushes a streaming update, and serves both feature services).
cd ..
python examples/materialize_and_serve.py
# 3. Build a point-in-time correct training set for the churn model.
python examples/training_dataset.py
... continues with setup instructions, usage examples, and more.