Book Deep-Read · Software Engineering at Google · Chapter 24

Continuous Delivery

Software Engineering at Google · Ch 24 · Continuous Delivery · Radha Narayan, Bobbi Jones, Sheri Shipe, David Owens · 2020

中文 →

What is this chapter about?

The apps on your phone ask you to update every few days. The previous chapter was about how a change gets safely into the codebase; this one takes the next step: how that change reaches users quickly and safely. That is "continuous delivery."

A strange thing first

Intuition says: releasing is risky, so release less often and check longer each time. Google concluded the exact opposite: faster is safer. The more often you ship, the less changes each time, and when something breaks you can see at a glance which piece did it.

Why the old world was hard

Picture someone who only moves house once a year. Stuff piles up, each move takes days off and wears them out, so they want to move even less, and next time there is even more to pack. YouTube used to be like that: every release needed a 50-hour manual check by an outside QA team, so everyone leaned toward "wait a bit, test a bit more," and someone would slip in one more "almost ready" feature. Releases became slow and error-prone, and the people who knew how to do them burned out and left.

How it works, intuitively

What it buys you / how to choose

With these practices Google Search went from "once a week, and often missing even that" to "reliably every other day." The key point: being able to ship any time is worth more than actually shipping every day. Phone users dislike daily updates, so push fewer of them, but keep the pipeline ready to ship at any moment. The honest cost: building this takes months of up-front investment, and lots of switches become a burden of their own.

Remember it in one line

Don't buy stability by shipping less. Buy it with small batches, on-time trains, features behind switches and gradual rollouts. Faster turns out to be safer.

Want to see how to break the "costly releases get slower" vicious cycle, how feature flags split deploying from releasing, the two rules of the release train, the "placebo" in A/B deployments, and what all this looks like in Chrome's release process? → Switch to deep read