The Cron Job That Ran Twice (And Charged Everyone Twice Too)
A consulting story about a nightly billing job that quietly started double-charging customers after a Kubernetes migration — and the boring lock that finally fixed it.
5 notes
A consulting story about a nightly billing job that quietly started double-charging customers after a Kubernetes migration — and the boring lock that finally fixed it.
An e-commerce team migrated from synchronous order processing to Kafka. Two weeks later, orders started showing impossible states. The root cause was a missing partition key.
A minor refactor in one service changed an empty array to null. Nothing crashed. Nothing alerted. But for three days, 8% of customers saw a blank analytics dashboard — and nobody knew why.
Every 30 minutes, the auth server spiked to 100% CPU and shed requests. The pattern was so regular you could set a watch by it. Turned out every user's JWT expired at the same time.
The most common timeout value I see in production codebases is 30 seconds. It's almost never the right choice. Here's why most timeout configs silently make outages worse, and what to set instead.