Shipping ItLesson 49 of 74

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

A prediction endpoint is a web service with a large secret

In this lesson

  • 9 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 1 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 7Free · no account needed
Lesson steps

The same shape, with different constants

A model behind an HTTP endpoint is still a process holding a port open. Everything from the first module applies: a proxy in front, a health check, a supervisor, logs with request IDs. What changes is the size of four constants, and every operational surprise in this module comes from one of them.

  • Memory. A web process is 100 to 300 MB. A model process is the size of its weights plus the runtime. A gradient-boosted tree is a few megabytes. A small transformer at 8-bit is around 8 GB. An embedding model is a few hundred megabytes.
  • Start-up time. Loading weights from disk takes seconds to minutes. A web app starts in one second.
  • Concurrency. A web worker spends most of its life waiting on the database, so twenty threads on four cores is fine. A model spends its life computing, so twenty concurrent requests on four cores makes all twenty slow.
  • Cost per request. Measured in fractions of a cent for a database query, and in cents for a large model call.

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) ‘A prediction endpoint is a web service with a large secret’, in Shipping It. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/cloud-and-shipping/a-model-is-a-process-with-weights (Accessed: 27 November 2026).