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.…