Building with AILesson 80 of 80

Module 8 · Cost, latency and running it in production

One feature, end to end, with every number filled in

In this lesson

  • 12 min read
  • 8 reading sections
  • Knowledge check
  • Lesson 10 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 little at a time

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

Step 1 of 9Free · no account needed
Lesson steps

The brief

A software company with two thousand customers and a support inbox receiving three hundred tickets a day. Six support agents. They want each ticket categorised and prioritised on arrival, and a draft first reply ready when an agent opens it. Agents send the reply; nothing goes to a customer without a person. That last sentence was decided in the first meeting and it shapes everything below.

Scope and identity

An internal tool for six authenticated agents. No guests, no public endpoint, no anonymous tier; the denial-of-wallet controls are still applied (a per-agent daily cap and a kill switch) because the commonest attacker is a misconfigured loop. The only exit is the draft, which appears in the ticket system as text a person reads before sending. There is one tool, lookup_customer(email), read-only, arguments validated against the ticket’s own sender address. There is no tool that can change a ticket’s status, send a message, or issue a refund. The trifecta table reads: private data, yes; untrusted content, yes: every ticket body is written by an outsider; exits, none automatic. Bounded.

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) ‘One feature, end to end, with every number filled in’, in Building with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-with-ai/one-feature-end-to-end (Accessed: 29 November 2026).