Building with AILesson 79 of 80

Module 8 · Cost, latency and running it in production

Deprecations and the pinning problem

In this lesson

  • 8 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 9 of 10 in this chapter

This chapter’s goalProduce a cost and latency budget for an AI feature at a stated scale, defend each line of it with a measurement, and operate the feature through a provider outage, a model deprecation and a tenfold traffic increase without an unplanned bill or an unplanned outage.

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 model retirement, handled on your calendar rather than theirsAnnouncementThe provider publishes a retirement date for the pinned snapshot, typically six totwelve months out, on a page almost nobody readsNine monthsoutThe quarterly check writes the months remaining beside the snapshot name, in thesame configuration file, so the two are never separatedThree monthsoutMigration begins: the harness runs against the candidate snapshot and printsexactly which cases the new weights breakTwo monthsoutDivergences fixed as per-model overrides rather than a forked prompt, then a weekof shadow against real trafficSix weeksoutA week of sticky canary with a stopping rule, then the flag is flipped and the newsnapshot’s own retirement date is recordedRetirementdayNothing happens, because production moved six weeks agoThe same work happens either way. Done on this schedule it is a fortnight of ordinary process; done onthe provider’s date it is an afternoon of prompt fixes with no shadow, no canary and a behaviourchange nobody evaluated.
The same work happens either way. Done on this schedule it is a fortnight of ordinary process; done on the provider's date it is an afternoon of prompt fixes with no shadow, no canary and a behaviour change nobody evaluated.

Figure

A little at a time

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

Step 1 of 8Free · no account needed
Lesson steps

Models retire

Every provider retires models. The notice is typically six to twelve months, occasionally less, and on the date the endpoint returns an error. Each provider publishes a page listing what retires when. Almost nobody reads it until the error arrives, usually at an inconvenient hour, in production, on the feature nobody has touched in a year because it was working.

Aliases and snapshots

Providers offer two kinds of model name. A dated snapshot (something like model-2026-03-15) is a fixed set of weights that behaves the same today and next month. An alias (model-latest, or an undated name) resolves to whatever the provider currently considers that model, and changes when they ship a new version.

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 Python, from Zero, for AI exam.

Stuck on something?Ask Sayali, your AI tutor

How to cite: Addaly (2026) ‘Deprecations and the pinning problem’, in Building with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-with-ai/deprecations-and-the-pinning-problem (Accessed: 29 November 2026).