Menu

Cold starts are a latency budget problem: what a 9-second first request taught me about production AI agents
📰

Cold starts are a latency budget problem: what a 9-second first request taught me about production AI agents

DEV Community: dotnet·Ibad Ahmed Khan·about 8 hours ago
#DP1O40G2
#devtodotnet#devto#dev#first#cold
Long article (1725 words) — no AI summary yet.
Reading 0:00
15s threshold

One weekend, our AI phone agent started handing calls over to human agents. The service wasn't down. When we called the API ourselves, it answered. Real callers were still getting dropped.

The cause was one number: the first login after a quiet period took 9.1 seconds. After we moved the service to an always-on Linux container, the same login took 0.28 seconds .

You can read that as "IIS went to sleep, we woke it up". That's true, and it's also the least interesting part. The more useful lesson is about how to think about latency when the client on the other end is a machine with a stopwatch, not a human who will wait. This post covers the incident, where a .NET cold start actually spends its time, and the ladder of fixes from "never be cold" to "make cold impossible to miss".

1. The real problem: a turn has a budget

A human on a web page might sit through a slow first load. A voice agent can't.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.