01Chapter 1: Latency and throughput in model servingThis chapter assumes that you know how a trained model is exposed through an HTTP or gRPC endpoint. You should also understand basic latency measurements such as p50 and p99, read simple Python and YAML, and know that a Kubernetes Deployment runs one or more copies of a service.2 min read
02Chapter 2: Why batching makes accelerators more efficientAssume you know how to call a model through an HTTP or gRPC endpoint and can distinguish latency from throughput. You should also be comfortable with basic tensor shapes and percentile metrics such as p50 and p99.2 min read
03Chapter 3: Static batching and its limitsAssume you understand model serving through an HTTP or gRPC endpoint, latency percentiles such as p50 and p99, Python, and Kubernetes Deployments. You should also know that an accelerator, such as a GPU, can process several inputs in one operation.2 min read
04Chapter 4: Dynamic batching: grouping requests on the serverAssume you know how to serve a trained model through an HTTP or gRPC endpoint. You should also know latency percentiles such as p50 and p99, basic Python, and how a Kubernetes Deployment runs replicas.2 min read
05Chapter 5: Latency objectives and tail latencyAssume you know how a model is served through an HTTP or gRPC endpoint, and you understand latency, throughput, p50, and p99. You should also be able to read basic Python and Kubernetes YAML.2 min read
06Chapter 6: Choosing max batch size and max queue delayAssume you understand HTTP or gRPC model endpoints, p50 and p99 latency, Python, YAML, and Kubernetes Deployments. This chapter focuses on server-side dynamic batching. Dynamic batching is a server technique that briefly holds incoming requests and sends several together to the model.2 min read
07Chapter 7: Queueing basics and Little's lawAssume you already understand an HTTP or gRPC model endpoint, latency percentiles such as p50 and p99, Python, and basic Kubernetes Deployments. This chapter uses those ideas to connect request traffic with the number of model replicas you need.2 min read
08Chapter 8: Continuous batching for LLM-style workloadsAssume you understand model-serving endpoints, p50 and p99 latency, and basic batching. This chapter focuses on autoregressive large language models (LLMs), which generate output one token at a time.2 min read
09Chapter 9: Choosing what to scale onPrerequisites: You should understand model-serving endpoints, p50 and p99 latency, basic Kubernetes Deployments, and the difference between a request queue and an in-flight request.3 min read
10Chapter 10: Horizontal autoscaling of replicasAssume you already know how a model runs behind an HTTP or gRPC endpoint, how to read p50 and p99 latency, and how to edit a Kubernetes Deployment. Horizontal autoscaling adds or removes identical model replicas as traffic changes.2 min read
11Chapter 11: Stabilization, cooldown, and scaling limitsAssume you know how a Kubernetes Deployment runs model replicas and how an autoscaler uses metrics such as queue depth or CPU utilization. This chapter focuses on preventing replicas from changing too quickly when inference traffic varies.2 min read
12Chapter 12: Cold start and warmupAssume you know how an HTTP or gRPC model endpoint works, can read Kubernetes YAML, and understand latency percentiles such as p50 and p99. This chapter focuses on the delay before a new model replica can serve reliable traffic.2 min read
13Chapter 13: Sizing replicas and planning capacityAssume you know how to expose a trained model through an HTTP or gRPC endpoint. You should also be comfortable with average latency, p50 and p99 latency, basic Python, and Kubernetes Deployments. This chapter uses Little’s law, which relates request rate, latency, and the number of requests being pr2 min read
14Chapter 14: Metrics to watch for batching and scalingAssume you understand HTTP or gRPC model endpoints, p50 and p99 latency, Python, and basic Kubernetes Deployments. This chapter uses those ideas to connect inference metrics to batching and autoscaling decisions.2 min read
15Chapter 15: Tuning batching and autoscaling togetherAssume you understand model-serving endpoints, p50 and p99 latency, basic Python and YAML, and Kubernetes Deployments. This chapter treats batching and autoscaling as one control system. Changing one changes the signals used by the other.2 min read
16Chapter 16: Scale to zero and its trade-offsAssume you understand model-serving endpoints, Kubernetes Deployments, latency percentiles, and basic autoscaling. This chapter focuses on one decision: whether a model service should run no replicas when it has no traffic.3 min read