Skip to Content
Building Machine Learning Systems with a Feature Store
book

Building Machine Learning Systems with a Feature Store

by Jim Dowling
November 2025
Intermediate to advanced
508 pages
14h 13m
English
O'Reilly Media, Inc.
Book available
Content preview from Building Machine Learning Systems with a Feature Store

Chapter 9. Streaming and Real-Time Features

If you want to implement a scalable real-time ML system that has a feature freshness of just a few seconds, you need streaming feature pipelines. A streaming feature pipeline is a stream-processing program that runs 24/7, consuming events from a streaming data source, potentially enriching those events from other data sources, applying data transformations to create features, and writing the output feature data to a feature store.

Operationally, streaming pipelines have more in common with microservices than batch pipelines. If a streaming pipeline breaks, it often needs to be fixed immediately. You don’t have until the next scheduled batch run to fix it. Stream processing programs divide (partition) the infinite stream of events into groups of related events that are processed together in windows. A window is a time-bound set of events. For example, a streaming pipeline could create a window that groups credit card transactions by credit card number for the last hour and computes features over those events, such as the number of card transactions in the last hour for each card. In such a case, you would need to consider what to do with late-arriving data after its processing window had closed. For example, what should you do with a credit card transaction that arrived two hours late? Despite these challenges, streaming feature pipelines are increasingly being used to build real-time ML systems. They are also becoming more accessible ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Feature Engineering for Machine Learning

Feature Engineering for Machine Learning

Alice Zheng, Amanda Casari

Publisher Resources

ISBN: 9781098165222Errata PageSupplemental Content