01Chapter 1: From trained model to served predictionsThis chapter assumes you know basic machine learning vocabulary (training, model, features, prediction). It also assumes you can read Python and have a rough idea of what an HTTP API and a scheduled job are. No serving tools are needed yet.2 min read
02Chapter 2: Batch prediction: scoring many records on a scheduleThis chapter assumes you know basic machine learning vocabulary (training, model, features, prediction). It also assumes you can read Python and understand scheduled jobs such as cron. The previous chapter covered how a trained model becomes a source of predictions. Here we look at the first serving3 min read
03Chapter 3: Real-time prediction: scoring one request on demandThis chapter assumes you know basic machine learning vocabulary (training, model, features, prediction), can read Python, and understand what an HTTP API is. You should also have read the chapters on inference basics and batch prediction.3 min read
04Chapter 4: Latency versus throughputThis chapter assumes you know basic machine learning vocabulary (training, model, features, prediction), can read Python, and understand HTTP APIs and scheduled jobs. It builds on the earlier chapters that defined batch and real-time prediction.3 min read
05Chapter 5: Freshness and staleness of predictionsThis chapter assumes you know basic machine learning vocabulary (model, features, prediction), can read Python, and understand scheduled jobs and HTTP APIs. It covers how old a prediction can be when someone uses it, and what that costs you.2 min read
06Chapter 6: Where features come from at prediction timeA model only predicts well if it receives the same kind of inputs at serving time that it saw during training. This chapter covers where those inputs come from in batch and real-time systems, and why the source matters.3 min read
07Chapter 7: Avoiding training-serving skewThis chapter assumes you know how a model is trained and how batch and real-time prediction differ. It also assumes you can read basic pandas code. Earlier chapters covered where features come from at prediction time. This one covers what goes wrong when those features differ from the ones used in t3 min read
08Chapter 8: Cost and resource utilizationThis chapter assumes you know basic machine learning vocabulary, can read Python, and understand scheduled jobs and HTTP APIs. It builds on the previous chapter on latency and throughput. Here you will see why the same model can cost very different amounts to serve, depending on how you run it.3 min read
09Chapter 9: Building a batch scoring pipelineThis chapter assumes you know basic ML vocabulary (training, features, prediction), can read Python, and know what a scheduled job is. It builds on the batch prediction chapter and shows how to turn a one-off scoring script into a pipeline you can run every day.2 min read
10Chapter 10: Building an online prediction serviceThis chapter assumes you know basic machine learning vocabulary, can read Python, and understand what an HTTP API is. An online prediction service is a small program that waits for requests, scores one record per request, and returns the result within a tight time limit.3 min read
11Chapter 11: Between the two: micro-batch and near-real-timeThis chapter assumes you know the basics from earlier chapters: batch scoring runs on a schedule over many records, and real-time scoring answers one request at a time. It also assumes you can read basic Python and understand the idea of a queue of events.3 min read
12Chapter 12: Hybrid patterns: precompute with live fallbackThis chapter assumes you know basic machine learning vocabulary, can read Python, and understand HTTP APIs and scheduled jobs. It also assumes you have seen batch and real-time prediction from earlier chapters.3 min read
13Chapter 13: Monitoring and handling failuresThis chapter assumes you know the basics of batch jobs and online services from earlier chapters. You should also be comfortable with Python and HTTP APIs. Here you will see what to watch in each serving pattern, how each one tends to fail, and how to respond.3 min read
14Chapter 14: Choosing between batch and real timeThis chapter assumes you know basic ML vocabulary (training, features, prediction), can read Python, and understand HTTP APIs and scheduled jobs. It also assumes you have seen the two serving patterns. Batch prediction scores many records on a schedule. Real-time prediction scores one request when i3 min read