Shipping ItLesson 54 of 74

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

Shadow, then canary, then everybody

In this lesson

  • 9 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 6 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
Shadow, then canary, then everybodyShadowreal traffic, answersdiscarded and logged;no side effects; watchthe disagreement rateCanary at 1%, 5%,25%split by a stable hashof the user; automaticrollback on error orlatencyExperimentmetric and sample sizefixed in advance, nopeekingEverybody, with a 1to 5% holdbackthe only way toanswer, in monththree, whether it isstill betterEach stage answers a different question. Shadow finds what breaks, canary finds what the users do, theexperiment settles whether it is better, and the holdback keeps that comparison alive after thelaunch.
Each stage answers a different question. Shadow finds what breaks, canary finds what the users do, the experiment settles whether it is better, and the holdback keeps that comparison alive after the launch.

Figure

A little at a time

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

Step 1 of 7Free · no account needed
Lesson steps

An offline improvement is a hypothesis

The new model beats the old one on the held-out set. That is evidence about a fixed dataset, collected in the past, scored by a metric you chose. It is not evidence about live traffic, which contains inputs your set does not, arrives at a different rate, and is followed by user behaviour your metric never measured.

The gap between offline and online results is one of the most consistently reported findings in applied machine learning: a substantial share of changes that improve an offline metric fail to improve the online one, and some make it worse. Nothing about that is a criticism of offline evaluation. It is a reason to ship models the way you ship code: gradually, with a way back.

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) ‘Shadow, then canary, then everybody’, in Shipping It. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/cloud-and-shipping/shipping-a-model-safely (Accessed: 29 November 2026).