Shipping ItLesson 57 of 74

Module 6 · Shipping a model, not just a web app

What the page says when the model is not there

In this lesson

  • 9 min read
  • 5 reading sections
  • Knowledge check
  • Lesson 9 of 9 in this chapter

This chapter’s goalPut a model behind an HTTP endpoint with a measured latency budget and a stated cost per request, ship a new version by shadow then canary rather than by hope, and detect the week its inputs stop resembling the data it was trained on.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 6Free · no account needed
Lesson steps

Model dependencies fail differently

Everything the failing-well lesson said about timeouts and breakers applies here, with four differences that change the settings.

  1. Normal latency is seconds, not milliseconds. A 2-second timeout is aggressive for a database and far too tight for generation. Timeouts must be set per operation: a classification call might be 3 seconds, a long generation 60.
  2. Streaming complicates the timeout. A stream that has produced tokens is alive even after 30 seconds. What you want is an idle timeout (no bytes for 10 seconds) rather than a total deadline, plus a maximum total as a backstop.
  3. Failure is often partial. The call succeeded and returned something unusable: truncated output, invalid JSON, a refusal, an empty string. HTTP 200 is not success for a model. Validate the shape of the answer before you use it, and count schema failures as errors in your metrics.
  4. Retries are expensive. Retrying a database query costs a millisecond; retrying a generation costs cents and seconds. Retry once on a clear transient signal, and prefer falling back to something cheaper over trying the same expensive thing again.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Agents and Automation exam.

Stuck on something?Ask Tri, your AI tutor

How to cite: Addaly (2026) ‘What the page says when the model is not there’, in Shipping It. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/cloud-and-shipping/the-fallback-when-the-model-is-down (Accessed: 29 November 2026).