01Chapter 1: From trained model to served predictionsA trained model does nothing until something runs it on new data. This chapter defines inference, explains what "serving" a model means, and sets up the two delivery patterns the rest of the tutorial compares: batch and real time.7 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 have a general idea of what a scheduled job is. You do not need to know any serving framework.7 min read
03Chapter 3: Real-time prediction: scoring one request on demandThis chapter covers how real-time (online) prediction works, what the service has to do for each request, and where it tends to fail. It assumes you know basic machine learning vocabulary (training, model, features, prediction). It also assumes you can read Python and know what an HTTP API is. Batch7 min read
04Chapter 4: Latency versus throughputThis chapter assumes you can read Python, know the terms model, feature and prediction, and have a rough idea of what an HTTP API and a scheduled job are. It defines latency and throughput, shows how to measure them, and explains why batch and real-time serving optimize different one.6 min read
05Chapter 5: Freshness and staleness of predictionsThis chapter assumes you know basic machine learning vocabulary (training, model, features, prediction) and can read Python. You should also know what a scheduled job and an HTTP API are. It builds on the earlier chapters that defined batch prediction (scoring many records on a schedule) and real-ti7 min read
06Chapter 6: Where features come from at prediction timeA trained model only accepts features, which are the numeric inputs it learned from. At prediction time you have to build those inputs from raw data, and where that data lives differs a lot between batch and real-time serving. This chapter covers the two places features come from, how each serving m7 min read
07Chapter 7: Avoiding training-serving skewTraining-serving skew happens when the features a model sees in production differ from the features it saw during training. The model code is unchanged and nothing crashes, but the predictions get worse. This chapter explains how skew arises, how batch and real-time serving each invite it, and how t6 min read
08Chapter 8: Cost and resource utilizationThis chapter assumes you know basic ML vocabulary, can read Python, and understand what an HTTP API and a scheduled job are. It also assumes you have read the earlier chapters on batch prediction, real-time prediction, and latency versus throughput. Here we turn those ideas into a cost model.6 min read
09Chapter 9: Building a batch scoring pipelineThis chapter assumes you know basic machine learning vocabulary (training, model, features, prediction), can read Python, and understand scheduled jobs. It builds on the earlier chapters on batch prediction and freshness. It shows how to turn a one-off scoring script into a pipeline you can run ever6 min read
10Chapter 10: Building an online prediction serviceThis chapter assumes you know basic machine learning vocabulary (training, features, prediction), can read Python, and understand what an HTTP API is. You will build a small service that scores one request at a time, then look at the decisions that decide whether it works under real traffic: startup6 min read
11Chapter 11: Between the two: micro-batch and near-real-timeThis chapter assumes you know the basics of batch scoring (a scheduled job over many rows) and online scoring (one request, one prediction, through an API). It also assumes you can read Python and know what a message queue is. The earlier chapters on latency, throughput and freshness are the backgro7 min read
12Chapter 12: Hybrid patterns: precompute with live fallbackBatch and real-time serving each have a weakness. Batch scores go stale and miss new records. Real-time scoring costs more and has to answer within a latency budget. A hybrid design uses both. It precomputes scores for the records you already know about, and it calls the model live for the rest.8 min read
13Chapter 13: Monitoring and handling failuresThis chapter assumes you know how batch scoring and online serving work, as covered in the earlier chapters. It also assumes you can read Python and know what a scheduled job and an HTTP endpoint are. It covers how each serving pattern fails, what to measure, and how to respond so a failure does not7 min read
14Chapter 14: Choosing between batch and real timeThis chapter assumes you know basic machine learning vocabulary (training, model, features, prediction), can read Python, and understand HTTP APIs and scheduled jobs. It also assumes you have seen the earlier chapters on batch scoring, online serving, freshness, skew, cost, and hybrid patterns. Here7 min read