You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ce529d8
Browse filesBrowse the repository at this point in the historyBrowse files
In module 1, we focus on building features for online serving, and keeping them fresh with a combination of batch feature materialization and stream feature ingestion.
3
+
In this module, we focus on building features for online serving, and keeping them fresh with a combination of batch feature materialization and stream feature ingestion. We'll be roughly working towards the following:
4
4
5
5
-**Data sources**: Kafka + File source
6
6
-**Online store**: Redis
7
7
-**Use case**: Predicting churn for drivers in real time.
We have already set up a feature repository in [feature_repo/](feature_repo/).
19
21
20
-
### Docker + Kafka + Redis
22
+
### Step 1: Docker + Kafka + Redis
21
23
22
24
We then use Docker Compose to spin up a local Kafka cluster and automatically publish events to it.
23
25
- This leverages a script (in `kafka_demo/`) that creates a topic, reads from `feature_repo/data/driver_stats.parquet`, generates newer timestamps, and emits them to the topic.
@@ -35,6 +37,21 @@ Attaching to zookeeper, redis, broker, kafka_events
35
37
...
36
38
```
37
39
38
-
## Continue with the workshop
40
+
## Step 2: Materialize batch features & ingest streaming features
41
+
42
+
Run the Jupyter notebook ([feature_repo/workshop.ipynb](feature_repo/module_1.ipynb)).
43
+
44
+
This will guide you through:
45
+
- Registering a `FeatureView` that has a single schema across both a batch source (`FileSource`) with aggregate features and a stream source (`PushSource`).
46
+
- Materializing feature view values from batch sources to the online store (e.g. Redis).
47
+
- Ingesting feature view values from streaming sources (e.g. window aggregate features from Spark + Kafka)
48
+
- Retrieve features at low latency from Redis through Feast.
49
+
50
+
{% note %}
51
+
Feast will, in the future, also support directly authoring a `StreamFeatureView` that contains stream transformations / aggregations (e.g. via Spark, Flink, or Bytewax) {% endnote %}
39
52
40
-
Now run the Jupyter notebook ([feature_repo/workshop.ipynb](feature_repo/module_1.ipynb))
53
+
## Step 3: Setting up push servers + feature servers
54
+
TODO
55
+
- Have some feature servers be read-only (for `/get_online_features`)
56
+
- (pre-alpha): with `go_feature_retrieval=True` and a `LoggingConfig`, the feature server will also log served features to the offline store.
57
+
- Have some feature servers be write-only (for `/push`)
0 commit comments