Chapter 1: The Error Budget Trap
Maria had just closed her laptop when the first alert fired.It was 11:14 PM on a Thursday. She had been in the office since 7:30 AM, guiding the deployment of Northwind Traders' new checkout service. The deployment had been textbook—blue-green switch, warm-up period, gradual traffic shift. Every health check passed. Every metric looked clean.
She had watched the final success message appear in Azure Pipelines at 10:58 PM, then spent fifteen minutes documenting the run for the morning handoff.Now her phone was buzzing against the oak nightstand. Not once. Not twice. Thirty-seven times in rapid succession, each buzz a different alert from Azure Monitor.Maria sat up, heart pounding. The clock read 3:14 AM.
She had been asleep for exactly three hours and forty-one minutes.She grabbed her laptop, logged into the VPN, and opened Application Insights. The dashboard was a wall of red. Error rate had spiked from 0.01% to 4.8% starting at 2:47 AM. The on-call engineer—a junior named Derek who had joined the team six weeks ago—had already attempted two rollbacks. Both had failed because the automated rollback script was trying to revert database schema changes that were incompatible with the previous version of the application code.At 3:22 AM, Maria made the call herself.
She stopped all traffic to the new environment, forced the old environment back to 100%, and restarted the database connection pool. By 3:31 AM, the error rate was back to baseline. By 3:45 AM, she had identified the root cause: a subtle race condition in the connection pooling logic that only manifested under high concurrency. The new checkout service had been designed to handle 500 requests per second. At 2:47 AM, a flash sale in Southeast Asia had pushed traffic to 1,200 requests per second.
The race condition became a cascade, and the cascade became an outage.Maria went back to bed at 4:12 AM. She did not sleep.The post-mortem meeting started at 9:00 AM. Twelve people crowded into the conference room: engineers, product managers, the VP of Engineering, and the Head of Customer Support, whose team had fielded 847 support tickets since 3:00 AM."What went wrong?" the VP asked. His name…
This is the end of the free sample. Get the Paperback to keep going. Buy now →



















