# feast-dev/feast architecture

> Architecture diagram of the GitHub repository feast-dev/feast, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/feast-dev/feast
- Repository: https://github.com/feast-dev/feast

## Overview

Feast is a feature store for ML: teams define and register features, retrieve point-in-time-correct historical data for training, materialize feature values to an online store, and retrieve them for inference. The Python SDK and storage/compute integrations provide the main workflow; serving APIs, the web UI, and Kubernetes operator support deployment and management. Workflow links reflect the README; detailed runtime wiring was not sampled, so uncertain implementation-level connections are omitted.

Main entry points: [`sdk/python/feast/feature_store.py`](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/feature_store.py) (FeatureStore SDK), [`sdk/python/feast/infra/online_stores/__init__.py`](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/online_stores/__init__.py) (Online stores), [`sdk/python/feast/infra/common/retrieval_task.py`](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/common/retrieval_task.py) (Historical retrieval), [`sdk/python/feast/infra/common/materialization_job.py`](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/common/materialization_job.py) (Materialization)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sdk["SDK and features"]
  node_feature_store["FeatureStore SDK<br/>[feature_store.py]"]
  node_feature_defs["Feature definitions<br/>[feature_view.py]"]
  node_feature_service["Feature services<br/>[feature_service.py]"]
end

subgraph group_data["Compute and storage"]
  node_registry[("Feature registry<br/>[infra_object.py]")]
  node_sources["Data sources<br/>[data_source.py]"]
  node_offline[("Offline stores<br/>[offline_store.py]")]
  node_retrieval["Historical retrieval<br/>[retrieval_task.py]"]
  node_compute["Compute engines<br/>[base.py]"]
  node_materialization["Materialization"]
  node_online[("Online stores<br/>[__init__.py]")]
  node_vector["Vector store support"]
end

subgraph group_serving["Serving and clients"]
  node_feature_server["Feature server<br/>[feature_server.py]"]
  node_online_api["Online retrieval API"]
  node_go_serving["Go serving runtime<br/>[serving.go]"]
  node_java_serving["Java serving runtime"]
end

subgraph group_management["Management and deployment"]
  node_rest_registry["Registry REST API"]
  node_cli["Feast CLI<br/>[cli.py]"]
  node_web_ui["Web UI"]
  node_operator["Kubernetes operator"]
end

node_platform_team(("ML platform team"))
node_data_scientist(("Data scientist"))
node_model(("Model application"))
node_training_data["Training dataset"]
node_predictions["Inference features"]

node_platform_team -->|"defines"| node_feature_defs
node_feature_defs -->|"configures"| node_feature_store
node_platform_team -->|"runs apply"| node_cli
node_cli -->|"invokes"| node_feature_store
node_feature_store -->|"registers definitions"| node_registry
node_data_scientist -->|"requests history"| node_feature_store
node_feature_store -->|"requests retrieval"| node_retrieval
node_retrieval -->|"reads definitions"| node_registry
node_retrieval -->|"queries history"| node_offline
node_offline -->|"reads data"| node_sources
node_retrieval -->|"produces"| node_training_data
node_feature_store -->|"starts materialization"| node_materialization
node_materialization -->|"uses engine"| node_compute
node_materialization -->|"reads feature data"| node_offline
node_materialization -->|"writes features"| node_online
node_model -->|"requests online features"| node_feature_store
node_feature_store -->|"delegates retrieval"| node_online_api
node_online_api -->|"reads features"| node_online
node_feature_server -->|"serves features"| node_online
node_go_serving -->|"retrieves features"| node_online
node_java_serving -->|"retrieves features"| node_online
node_online_api -->|"returns features"| node_predictions
node_feature_service -->|"projects features"| node_feature_defs
node_web_ui -->|"fetches resources"| node_rest_registry
node_platform_team -->|"manages deployment"| node_operator
node_vector -.->|"supports vector retrieval"| node_online

click node_feature_store "https://github.com/feast-dev/feast/blob/master/sdk/python/feast/feature_store.py"
click node_feature_defs "https://github.com/feast-dev/feast/blob/master/sdk/python/feast/feature_view.py"
click node_feature_service "https://github.com/feast-dev/feast/blob/master/sdk/python/feast/feature_service.py"
click node_registry "https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/infra_object.py"
click node_sources "https://github.com/feast-dev/feast/blob/master/sdk/python/feast/data_source.py"
click node_offline "https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/offline_stores/offline_store.py"
click node_retrieval "https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/common/retrieval_task.py"
click node_compute "https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/compute_engines/base.py"
click node_materialization "https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/common/materialization_job.py"
click node_online "https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/online_stores/__init__.py"
click node_feature_server "https://github.com/feast-dev/feast/blob/master/sdk/python/feast/feature_server.py"
click node_online_api "https://github.com/feast-dev/feast/blob/master/sdk/python/feast/embedded_go/online_features_service.py"
click node_go_serving "https://github.com/feast-dev/feast/blob/master/go/internal/feast/onlineserving/serving.go"
click node_java_serving "https://github.com/feast-dev/feast/blob/master/java/serving/src/main/java/feast/serving/service/OnlineServingServiceV2.java"
click node_rest_registry "https://github.com/feast-dev/feast/blob/master/sdk/python/feast/api/registry/rest/rest_registry_server.py"
click node_cli "https://github.com/feast-dev/feast/blob/master/sdk/python/feast/cli/cli.py"
click node_web_ui "https://github.com/feast-dev/feast/blob/master/ui/src/queries/useResourceQuery.ts"
click node_operator "https://github.com/feast-dev/feast/blob/master/infra/feast-operator/internal/controller/featurestore_controller.go"
click node_vector "https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/online_stores/faiss_online_store.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_feature_store,node_feature_defs,node_feature_service toneBlue
class node_registry,node_sources,node_offline,node_retrieval,node_compute,node_materialization,node_online,node_vector toneAmber
class node_feature_server,node_online_api,node_go_serving,node_java_serving toneMint
class node_rest_registry,node_cli,node_web_ui,node_operator toneRose
class node_platform_team,node_data_scientist,node_model,node_training_data,node_predictions toneIndigo
```

## Components

### SDK and features

- [FeatureStore SDK](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/feature_store.py): `sdk/python/feast/feature_store.py`
- [Feature definitions](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/feature_view.py): `sdk/python/feast/feature_view.py`
- [Feature services](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/feature_service.py): `sdk/python/feast/feature_service.py`

### Compute and storage

- [Feature registry](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/infra_object.py): `sdk/python/feast/infra/infra_object.py`
- [Data sources](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/data_source.py): `sdk/python/feast/data_source.py`
- [Offline stores](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/offline_stores/offline_store.py): `sdk/python/feast/infra/offline_stores/offline_store.py`
- [Historical retrieval](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/common/retrieval_task.py): `sdk/python/feast/infra/common/retrieval_task.py`
- [Compute engines](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/compute_engines/base.py): `sdk/python/feast/infra/compute_engines/base.py`
- [Materialization](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/common/materialization_job.py): `sdk/python/feast/infra/common/materialization_job.py`
- [Online stores](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/online_stores/__init__.py): `sdk/python/feast/infra/online_stores/__init__.py`
- [Vector store support](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/online_stores/faiss_online_store.py): `sdk/python/feast/infra/online_stores/faiss_online_store.py`

### Serving and clients

- [Feature server](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/feature_server.py): `sdk/python/feast/feature_server.py`
- [Online retrieval API](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/embedded_go/online_features_service.py): `sdk/python/feast/embedded_go/online_features_service.py`
- [Go serving runtime](https://github.com/feast-dev/feast/blob/master/go/internal/feast/onlineserving/serving.go): `go/internal/feast/onlineserving/serving.go`
- [Java serving runtime](https://github.com/feast-dev/feast/blob/master/java/serving/src/main/java/feast/serving/service/OnlineServingServiceV2.java): `java/serving/src/main/java/feast/serving/service/OnlineServingServiceV2.java`

### Management and deployment

- [Registry REST API](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/api/registry/rest/rest_registry_server.py): `sdk/python/feast/api/registry/rest/rest_registry_server.py`
- [Feast CLI](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/cli/cli.py): `sdk/python/feast/cli/cli.py`
- [Web UI](https://github.com/feast-dev/feast/blob/master/ui/src/queries/useResourceQuery.ts): `ui/src/queries/useResourceQuery.ts`
- [Kubernetes operator](https://github.com/feast-dev/feast/blob/master/infra/feast-operator/internal/controller/featurestore_controller.go): `infra/feast-operator/internal/controller/featurestore_controller.go`

### Other components

- **ML platform team**
- **Data scientist**
- **Model application**
- **Training dataset**
- **Inference features**

## Connections

- ML platform team → Feature definitions: defines
- Feature definitions → FeatureStore SDK: configures
- ML platform team → Feast CLI: runs apply
- Feast CLI → FeatureStore SDK: invokes
- FeatureStore SDK → Feature registry: registers definitions
- Data scientist → FeatureStore SDK: requests history
- FeatureStore SDK → Historical retrieval: requests retrieval
- Historical retrieval → Feature registry: reads definitions
- Historical retrieval → Offline stores: queries history
- Offline stores → Data sources: reads data
- Historical retrieval → Training dataset: produces
- FeatureStore SDK → Materialization: starts materialization
- Materialization → Compute engines: uses engine
- Materialization → Offline stores: reads feature data
- Materialization → Online stores: writes features
- Model application → FeatureStore SDK: requests online features
- FeatureStore SDK → Online retrieval API: delegates retrieval
- Online retrieval API → Online stores: reads features
- Feature server → Online stores: serves features
- Go serving runtime → Online stores: retrieves features
- Java serving runtime → Online stores: retrieves features
- Online retrieval API → Inference features: returns features
- Feature services → Feature definitions: projects features
- Web UI → Registry REST API: fetches resources
- ML platform team → Kubernetes operator: manages deployment
- Vector store support → Online stores: supports vector retrieval
