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.

  1. Building A Generative AI Platform (opens in a new tab)

    Chip Huyen2024Article

    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.

  2. LLM Inference Handbook (opens in a new tab)

    Modular2026Article

    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.

  3. Production Metrics (opens in a new tab)

    vLLM2026Documentation

    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.

  4. Chapter 6: Monitoring Distributed Systems (opens in a new tab)

    Rob Ewaschuk2017Book

    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.

  5. Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Serve (opens in a new tab)

    Amey Agrawal, Nitin Kedia, Ashish Panwar, Jayashree Mohan, et al.2024PaperOSDI 2024

    Now a foundational serving paper: chunked prefills and stall-free scheduling, which make the throughput-versus-latency trade-off of lesson 2 concrete.

  6. Benchmark CLI (opens in a new tab)

    vLLM2026Documentation

    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)

    vLLM2026Documentation

    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

    Chip Huyen2024Article

    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)

    Modular2026Article

    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)

    Hamel Husain, Shreya Shankar2026Article

    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)

    OWASP GenAI Security Project2025Documentation

    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

Hands-on

  • Benchmark CLI (opens in a new tab)

    vLLM2026Documentation

    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

    Rob Ewaschuk2017Book

    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)

    Steven Thurgood, Jess Frame, Anthony Lenton, Carmela Quinito, et al.2018Book

    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