Module resources
Production: cost, serving and observability
Checked sources to go further than the lessons. Back to the module.
Recommended learning sequence
Work through these in order.
Building A Generative AI Platform (opens in a new tab)
Start with a map of a whole GenAI platform: gateway, caches, guardrails and observability around the model. It frames where the cost, serving and monitoring pieces of this module sit. Repeated on purpose: it is also a module 11 resource, used here as the map.
LLM Inference Handbook (opens in a new tab)
Then learn the serving vocabulary: its navigation lists key metrics (TTFT, TPOT, goodput), batching strategies and chunked prefill, with interactive tools. It backs up lessons 1 and 2.
Production Metrics (opens in a new tab)
Official documentation next: the Prometheus metrics a vLLM server exposes, such as time to first token, inter-token latency, KV-cache usage and waiting requests. These are the numbers lesson 3 asks you to watch.
Chapter 6: Monitoring Distributed Systems (opens in a new tab)
Read the general monitoring theory behind those dashboards: the four golden signals and why to alert on symptoms rather than causes. It turns lesson 3 into a rule for what deserves a page.
Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Serve (opens in a new tab)
Now a foundational serving paper: chunked prefills and stall-free scheduling, which make the throughput-versus-latency trade-off of lesson 2 concrete.
Benchmark CLI (opens in a new tab)
Finish by measuring. Run the benchmark command against a model you serve, read TTFT, ITL and throughput, and check the numbers in lessons 1 and 2 against your own.
All resources
Official documentation
Production Metrics (opens in a new tab)
Lists each exported metric with its type, including histograms for latency and gauges for KV-cache usage, running and waiting requests. Shows what a serving dashboard reads from the engine.
Further reading
Building A Generative AI Platform (opens in a new tab)Essential
Walks through prompt, exact and semantic caches, a gateway with fallbacks, and metrics, logs and traces. Gives names to the parts of lessons 1, 3 and 5. Repeated on purpose: it is also a module 11 resource.
LLM Inference Handbook (opens in a new tab)
A handbook with chapters on foundations, inference optimization and infra and operations, plus tools such as a KV cache memory calculator and a batching simulator. Use the tools to test the arithmetic in lesson 2.
AI Evals: Everything You Need to Know (opens in a new tab)
A long question-and-answer guide on error analysis of traces, binary LLM judges validated against human labels, RAG evaluation, and how evals differ between CI and production. Extends lesson 3 beyond the lesson's reading list.
2025 Top 10 Risk & Mitigations for LLMs and Gen AI Apps (opens in a new tab)
The risk list that the security parts of lesson 5 draw on, including prompt injection and vector and embedding weaknesses. Repeated on purpose: it is a source in other modules, used here as a checklist for the release review.
Research papers
Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Serve (opens in a new tab)
An OSDI 2024 paper on splitting prefills into chunks so new requests do not pause running decodes. Its reported capacity gains are the authors' own results against vLLM.
Hands-on
Benchmark CLI (opens in a new tab)
Documents `vllm bench serve`, its TTFT, ITL, TPOT and throughput outputs, and its datasets including a prefix-repetition one. It warns that metric names are not standardized across tools, so compare formulas, not labels.
Books
Chapter 6: Monitoring Distributed Systems (opens in a new tab)Essential
Chapter 6 of the Google SRE book. It defines latency, traffic, errors and saturation and says every page should be actionable. Use it to decide which of your LLM metrics should wake someone.
Chapter 5: Alerting on SLOs (opens in a new tab)
Explains error-budget burn rate and alerting with a long and a short window, with starting thresholds for a 99.9% target. Lets you turn an SLO for a RAG endpoint into alerts that are neither slow nor noisy.
Case studies
All the Hard Stuff Nobody Talks About when Building Products with LLMs (opens in a new tab)
Honeycomb's account of shipping a natural-language query feature: latency of two to 15+ seconds, errors compounding when calls are chained, and mitigations for prompt injection. A real product that met the problems of lessons 1 and 5.