Feast: use a Push Source to stream real-time feature updates into the online (and optionally offline) store

domain: ml-ops · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Define a `PushSource(name=..., batch_source=<BatchSource>)` in your feature repo — the `batch_source` is optional and only needed if you want historical/point-in-time retrieval or offline materialization for that data
  2. Reference the PushSource as the `source` of a `FeatureView`, including the entity join key in the schema
  3. Register it with `feast apply`
  4. At write time, call `FeatureStore(...).push("push_source_name", dataframe, to=PushMode.ONLINE_AND_OFFLINE)` — the `to` parameter defaults to `PushMode.ONLINE` if omitted; other options are `PushMode.OFFLINE` and `PushMode.ONLINE_AND_OFFLINE`
  5. For streaming pipelines (e.g., PySpark Structured Streaming), call `store.push(feature_view_name, pandas_df)` inside a `foreachBatch` writer on the streaming DataFrame
  6. Alternatively push data to a deployed Feast Python feature server's push endpoint instead of calling the SDK in-process

Known gotchas

Related routes

Define a Feast feature view over a batch data source and materialize it into the online store for low-latency serving
docs.feast.dev · 5 steps · unrated
Define and materialize a Feast feature view with a Redis online store for real-time serving
feast.dev · 5 steps · unrated
Define a Feast stream feature view over a Kafka source with an attached Spark transformation for near-real-time features
docs.feast.dev · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans