Get up to speed on a new unified approach to building machine learning (ML) systems with a feature store. Using this practical book, data scientists and ML engineers will learn in detail how to develop and operate batch, real-time, and agentic ML systems.
Author Jim Dowling introduces fundamental principles and practices for developing, testing, and operating ML and AI systems at scale. You'll see how any AI system can be decomposed into independent feature, training, and inference pipelines connected by a shared data layer. Through example ML systems, you'll tackle the hardest part of ML systems--the data, learning how to transform data into features and embeddings, and how to design a data model for AI.
Develop batch ML systems at any scale
Develop real-time ML systems by shifting left or shifting right feature computation
Develop agentic ML systems that use LLMs, tools, and retrieval-augmented generation
Understand and apply MLOps principles when developing and operating ML systems
This book introduces fundamental principles and practices for developing, testing, and operating ML and AI systems at scale. It illustrates how an AI system can be decomposed into independent feature, training, and inference pipelines connected by a shared data layer. Through example ML systems, readers will tackle the hardest part of ML systems—the data, learning how to transform data into features and embeddings, and how to design a data model for AI.
The book is arranged into 6 logical parts, with each consisting of a group of chapters. Part I (chap. 1~3) introduces the feature-training-inference (FTI) architecture and concludes with a case study. Part II (chap. 4, 5) introduces feature stores for ML and a real-time credit card fraud example that will be covered throughout the book. Part III (chap. 6~9) is about data transformations for AI systems using frameworks such as Pandas, Polars, Apache Spark, Apache Flink
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
# Building Machine Learning Systems with a Feature Store
## 【One-Line Pitch】
A practical, architecture-first guide for data scientists and ML engineers who want to move beyond notebook experiments and build production-grade batch, real-time, and LLM-powered ML systems using the feature-training-inference (FTI) architecture and feature stores.
## 【Book Arc】
- **Opening (~0%–9%)**: Introduces the core FTI architecture—decomposing any AI system into independent feature, training, and inference pipelines connected by a shared data layer. Establishes the taxonomy of data transformations (model-independent, model-dependent, on-demand) and frames the journey from static datasets to dynamic batch and real-time data.
- **Early (~9%–28%)**: Dives into ML pipeline design and modular code practices. Covers the anatomy of batch systems (e.g., Spotify's weekly recommendations) versus real-time systems (e.g., TikTok's adaptive feed), explains why feature stores emerged (Uber's Michelangelo, 2017), and walks through the first end-to-end example—a Titanic survival prediction system with both batch and interactive UIs.
- **Early–Middle (~28%–44%)**: Builds a complete air quality forecasting service as a second worked example. Demonstrates data exploration, missing-data handling, feature engineering with Pandas, and the full pipeline sequence: feature pipeline → training pipeline → inference pipeline, all orchestrated through Hopsworks.
- **Middle (~44%–53%)**: Shifts to feature stores in depth. Explains point-in-time correct training data, temporal joins, and the critical problem of data leakage (both future leakage and stale features). Compares two feature store architectures—batch-synced offline-to-online versus stream-enabled online-first designs.
- **Middle–Late (~53%–100%)**: Covers data transformations at scale using frameworks like Pandas, Polars, Apache Spark, and Apache Flink. Details model-independent transformations (row/column size–preserving, reducing, increasing, joins), lazy DataFrames, vectorized compute with Arrow, and builds toward the real-time credit card fraud detection system that threads through the book.
## 【Key Takeaways】
- **The FTI architecture is the unifying pattern for all AI systems** (Early): Every ML system—batch, real-time, or agentic—can be decomposed into feature, training, and inference pipelines connected by a shared data layer. This modularity lets teams develop each pipeline independently as long as they respect the data contract (schemas, validation rules, SLOs).
- **Feature stores solve the stateful online inference problem** (Early): When clients can't send all context in a request, precomputed features stored in a feature store give online models low-latency access to history and personalization data. This was the insight behind Uber's Michelangelo and remains central to modern ML platforms.
- **Data leakage has two time-based forms** (Middle): Future data leakage (using feature values from after the prediction time) and stale features (using values older than the actual observation time) both corrupt training data. Feature stores address this with temporal joins that create point-in-time correct training snapshots.
- **Data transformations follow a three-way taxonomy** (Early): Model-independent transformations (MITs) run only in feature pipelines and create reusable features; model-dependent transformations (MDTs) run in training and inference pipelines for model-specific features; on-demand transformations (ODTs) compute real-time features at inference time and can also be applied historically.
- **Modular code beats spaghetti notebooks** (Early): Refactor ML pipelines into functions and classes, keep code DRY, and test before deploying. This is the difference between a demo and a maintainable production system that can evolve as features, models, and requirements change.
- **Feature store architecture choices matter** (Middle): Two patterns exist—batch-synced (clients write to offline store, periodically synced to online/vector index) and stream-enabled (stream API writes to online store, periodically synced to offline). The choice depends on freshness requirements and whether you need real-time feature updates.
- **Start with data completeness checks** (Middle): Before feature engineering, examine data in notebooks—check for missing values with `isna().sum()`, drop incomplete rows, and validate that your target column and date/time columns are clean. This groundwork prevents downstream pipeline failures.
## 【Reading Tips】
- **Skim the Titanic and air quality examples if you're experienced** (~34%–44%): These are pedagogical walkthroughs with code. If you understand the FTI pattern, focus on the architecture decisions rather than the step-by-step notebook instructions.
- **Deep-read the feature store chapters** (~44%–53%): The temporal join and data leakage material is conceptually dense and is the book's core intellectual contribution. Understanding point-in-time correctness here will pay off in every subsequent chapter.
- **Pay attention to the fraud detection case study** (Middle–Late): This is the recurring example that ties batch, real-time, and streaming concepts together. It's worth tracking how features flow from the data mart and event-streaming platform into the feature store.
- **Treat the transformation taxonomy as a mental model** (Early): The MIT/MDT/ODT distinction is the book's organizing principle for data work. Internalize it early—it will help you classify every transformation you encounter later.
- **Skip the Hopsworks setup details if you're not using that platform** (~34%): The installation and API key instructions are specific to the book's chosen tooling. The architectural lessons transfer regardless of your feature store choice.
## 【Coverage Limits】
Excerpts cover roughly the first half of the book (through ~53%), including the FTI architecture, feature store fundamentals, and early data transformation material. Later chapters on real-time systems, agentic LLM workflows, and MLOps practices are not covered in this guide.
##
Excerpt 1
le that will be covered throughout the book. Part III (chap. 6~9) is about data transformations for AI systems using frameworks such as Pandas, Polars, Apach...
engine, on the other hand, is famous for adapting its rec‐ ommendations in near real time as you click and watch its short-form videos. Tik‐ Tok’s recommenda...
ning and inference pipelines. On-demand transformations are also performed in two different pipelines—the online inference pipeline and the fea‐ ture pipelin...
iodically synchronized to the online store and vector index. In (b), clients can also write via a stream API to an event-streaming platform, after which upda...
e right-hand feature group. Model-Dependent Transformations In Hopsworks, you can declaratively attach a transformation function to any of the selected featu...
rd fraud detection is time_since_last_transaction, which is calculated relative to the current transaction’s timestamp and the timestamp for the most recent...
should have a timestamp column (event time) and you should have an index on that column; otherwise, incremental and backfill runs will read all records in th...
| Chapter 9: Streaming and Real-Time Features Lag features These capture the value of a variable at a previous time step (such as yesterday’s air quality). C...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Building Machine Learning Systems with a Feature Store Batch, Real-Time, and LLM Systems (Jim Dowling)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Building Machine Learning Systems with a Feature Store Batch, Real-Time, and LLM Systems (Jim Dowling)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment