Experiments · Nobody Writes Code Anymore · Chapter 11
All at once, or a canary
Canary deployment vs releasing to everyone at once
Everything is computed in your browser; nothing is sent anywhere.
About this experiment
What is a canary deployment?
A canary deployment releases a new version to a small share of machines or users first, watches the error rate and other health signals, and only then widens the rollout in stages. If the first group shows trouble, the release is stopped or rolled back before it reaches everyone. The name comes from the canaries coal miners took underground to warn them of gas. The CrowdStrike outage of 19 July 2024 is the textbook case of the opposite: one update went to every machine at once.
On the morning of 19 July 2024 one faulty CrowdStrike update stopped about eight and a half million computers. The bug sat in one place. The scale came from the way the update was released, to every machine at once. The chapter “Until It Works for People, Nothing Happened” is about the part of a release that happens after the code is written, and this is its example.
The grid stands for those computers, one square per cent, 85,000 machines each. There are two ways to roll out and two kinds of update. “All at once” sends the new version everywhere in one step. “Canary” follows the chapter’s steps: one per cent, then ten, then fifty, then everyone, with a pause after each step to watch errors and complaints and an automatic rollback if the first group falls over.
Run the faulty update both ways. All at once, the same mismatch goes off on every machine in the same minute. As a canary, one per cent is hit instead of a hundred, and the rollback needs no meeting. Then run the sound update. It reaches everyone either way, the canary just takes a few steps longer. The bug is identical every time; what changes is how the release is built, and that is the chapter’s argument. When agents write the code, the cost of a mistake is set by the rollout more than by the author.
From the book
Nobody Writes Code Anymore · Chapter 11
Until It Works for People, Nothing Happened
There is a further step, which Netflix thought of. In 2011 the company described a program with the telling name Chaos Monkey, which during working hours, on the real system, switches off servers at random. The idea is that servers will break anyway, and it is better to find out whether the system survives it on a Tuesday at eleven in the morning, when all the engineers are in, than on a Saturday at three in the morning. The monkey Pelevin sat at a typewriter to write code got a different job at Netflix: checking that what has been written survives its encounter with reality.If this is your team
If agents write code on your team and every fix breaks something next to it, we can go through it on a call. The first consultation is free and takes thirty minutes.
Book a consultation →