Índice do artigofaltam 6 min de leitura
The team tests the system update, the new version goes live and, minutes later, customer support starts getting complaints from every side. By the time someone figures out what broke and manages to go back to the previous version, every customer has been exposed to the same defect. Is there a way to update without running that risk?
iFood, a Brazilian food delivery app, explained on its tech blog how it turned the answer into a rule no team can skip: the new version goes first to a small share of the customers using the system at that moment and only moves on to the rest if no alarm goes off along the way.
The test passed and the system went down anyway
On July 2, 2019, Cloudflare, a network that protects and speeds up websites, published a new rule to protect against attacks. The rule exhausted the capacity of the network's machines all over the world, and anyone visiting its customers' websites saw an error page. The service was down for almost half an hour.
In the account published days later, John Graham-Cumming says the change was reviewed, approved and tested, with a written plan for publishing and for rolling back. The rest of the company's software went through stages, but protection rules went out to the whole world at once, to respond quickly to attacks. In seconds, the change reached every machine, and the rollback plan was too slow.
Google's reliability team, in the 2018 book "The Site Reliability Workbook", explains why testing does not catch this kind of defect. The test environment is never identical to the system customers use, and tests do not cover every possible situation, so some defect reaches customers. Separating the test environment from the live system is still necessary, as the article on that separation shows, but it is not enough.
How releasing to a few first works
Think of a bakery chain that changes its bread recipe. The new recipe goes first to a few stores similar to the others, and the rest keep the old one. The owner compares sales and complaints at those stores with the others in the same week, not with last week, because rain or a holiday changes everything from one week to the next. If those stores sell less or get more complaints, the owner pauses the change, those stores go back to the old recipe and only a few stores were affected. If the numbers look similar, the recipe moves to more stores, then to all of them.
The name engineers give this is a canary release. It comes from the canaries miners took into coal mines to know whether the mine was safe for people. Google calls the share that gets the new version the canary and the rest the control.
The book does the math with a teaching example: a defective version that makes one in every five requests fail.
All at once
The defect reaches everyone- One in every five requests across the whole system fails
- Rolling back happens with everyone already exposed
A few first
The defect stays in the share- With the version released to 5% of traffic, the overall error rate stays at 1%
- The team decides whether to continue before widening
How iFood made the step mandatory
Andre Stoicov, manager of the team that handles iFood's developer tools, says in the May article that the company was already releasing versions to a few first, and even so, 21% of releases skipped the step. The tool existed, he writes, but it could not get teams to use it the right way.
In the new model, the new version is released in stages, from a small share of customers up to everyone. The pace adjusts to the importance of each part of the system, and the highest-impact parts need to run well for a minimum time with the first share, but no team can skip a stage. During order peaks, around lunch and dinner, the system pauses on its own and, once the peak is over, resumes from the last stable point without anyone touching it. If monitoring flags an abnormal error rate and automatic interruption is on, the system abandons the release on its own, goes back to the previous version and notifies the team.
From one half of the year to the next, iFood recorded 37% fewer incidents caused by releases. The figure comes from the company itself, which did not publish its method. The account points to a limit: today, even when the version goes well, moving to the next stage still depends on a person approving it. At your company, it is worth knowing who plays that role.
Google points out where this usually fails: the share needs to be large enough and last long enough to represent real usage, and, if the dashboard flags problems all the time for no reason, the team stops paying attention and the process becomes decoration.
For a smaller company, the suggestion is to start simple: the first share can be one branch, a group of customers who agreed to test, or the team itself using the real system for a few days, always compared with those who stayed on the previous version and with someone already chosen to decide on rolling back.
If your app is in the app stores, you already have the button
On Google Play, the update goes to a percentage of users and that percentage only increases when someone on your team increases it. If a problem appears, you can halt it, and nobody else gets that version. On Apple's App Store, a phased release takes the update, over the course of a week, to a sample of people who have automatic updates turned on, and it can be paused for a limited time or released to everyone at any moment.
On Google Play, those who already received the problematic version stay on it, and the store's guidance is to release a fixed version. As with the bakery, bread already sold does not come back. And the button only protects you if someone watches the crash reports and reviews while the new version is being released, as Google recommends. That vigilance is part of the post-launch routine.
Replacing an app piece by piece
Risk can also be split by part of the system. X-Apps, the software company that writes this blog, did this on the Housi app, where customers search for properties on a map. The previous app had been built with an off-the-shelf no-code tool and, according to the case study, "worked as a showcase, but did not sustain the product". The new one needed to keep its name in the stores and started before the in-house system that would feed it data existed.
The new app started out using the old website's data and switched to the in-house system when it was ready. Test versions came out from the first weeks, and the switch in the stores kept the same app name. That way, the switch did not depend on everything being ready on the same day. The app's content, such as images, changes without publishing a new version, so some changes do not even carry the risk of an update.
Before approving the next update
Take these questions to the team or company that runs your system:
- How many customers get the next update first, and for how long does it stay with them only?
- Which number decides between continuing and rolling back, and who watches that number while the new version is being released?
- How long does it take to go back to the previous version, and do orders and sign-ups made on the new version remain valid after the rollback?
- Does our app use the stores' phased release, and who can pause it?
- Is there a time when nothing gets released, such as our business's sales peak?
- What do we need to set up to work this way, and how much does it cost?
If two or more answers come back vague, or just say that they test well beforehand, your next update is still all or nothing.
Sources read on November 23, 2026: Andre Stoicov, "Canary 2.0", iFood Tech, May 18, 2026; Alec Warner and Stepan Davidovic, "Canarying Releases", The Site Reliability Workbook, Google, 2018.
John Graham-Cumming, "Details of the Cloudflare outage on July 2, 2019", Cloudflare, July 12, 2019; help pages for Google Play Console and App Store Connect, consulted on November 23, 2026.





