Eli Brody
← Back to blog

The Deployment Is Not the Release

· 11 min read
Operations Automation Architecture

At most companies "deployment" and "release" mean the same thing. The code goes to production and users see it, in one event with one lump of risk. I think this is the biggest single source of deployment anxiety in our industry. It's why teams deploy on Tuesday mornings and avoid Friday afternoons, why releases get batched into big, frightening events, and why there are change advisory boards, deployment freezes and people sweating over a button click.

They are different things. A deployment puts code on production servers. A release exposes functionality to users. The two operations are independent, and separating them does more for an engineering organization's speed and reliability than almost anything else I know of.

Why the Conflation Is Dangerous

When deployment equals release, every deployment carries the full risk of a user-facing change. You are asking "will this code run correctly on production infrastructure?" and, in the same moment, "will users accept this new behavior?", "can the system handle the traffic pattern this creates?" and "are there edge cases we didn't test?" All of that risk rides on one atomic event. If anything goes wrong you have to roll back everything (the infrastructure change, the code change and the user-facing change) even when only one of them was the problem.

Bundled risk gives teams a reason to deploy less often. If each deployment is dangerous, the rational response is to do fewer of them. Fewer deployments mean larger batches, larger batches mean more changes per deployment, and more changes mean more risk per deployment. Organizations caught in that cycle end up deploying weekly or monthly, and each deployment becomes a major event with war rooms, rollback plans and on-call standby.

The teams that deploy most reliably are the ones that deploy most often. They aren't more careful. Each of their deployments is smaller, simpler and lower risk. Separating deployment from release is how you break the cycle and get there.

The Separation in Practice

Separating the two means code can sit in production without being active for users. It is deployed: on the servers, compiled, ready. It is not released. Users don't see it and traffic doesn't hit it. It stays dormant until a separate, independent decision switches it on.

There are several ways to do this, and you can combine them.

Feature Flags

Feature flags are the most common and most flexible way to separate deployment from release. A flag wraps new functionality in a conditional check. The code is deployed to production with the flag off, and the new code path never runs until someone, or something, turns the flag on.

A flag can do much more than switch on and off. A well-built flag system supports progressive rollout: enable the feature for 1% of users, watch error rates and performance, go to 10%, watch again, go to 50%, and finally 100%. If something goes wrong at any point, you flip the flag off. There is no rollback and no redeployment, because the old code path is still there, ready to take traffic.

The risk looks very different after that. You stop asking "will this deployment work for 100% of users?" and ask "will this feature work for 1% of users?" The blast radius is controlled and the feedback comes fast. The remedy, turning off the flag, takes seconds, where a rollback takes minutes or hours.

Dark Launches

A dark launch goes a step further. The new functionality is deployed and executed in production, but users never see its results. The new code path runs in parallel with the old one and both process the same request. The old path returns its result to the user. The new path logs its result for comparison. You get real production data on the new code's accuracy, latency and error rates with no user impact.

Dark launches earn their keep on high-risk changes. Say you're migrating to a new database. Run reads against both the old and new database in parallel, compare the results, then find the discrepancies and fix them. When the new path matches the old one closely enough, switch over. You've validated the change against real production traffic before a single user was affected.

The technique matters most where synthetic testing can't reproduce production conditions, which is most systems. Production traffic has patterns, edge cases and data distributions that no test suite fully anticipates. A dark launch lets you test against the real thing safely.

Canary Deployments

A canary deployment routes a small percentage of production traffic to the new version of a service while most traffic keeps hitting the old version. It resembles a percentage-based flag rollout, but it works at the infrastructure level, where a flag works inside the application.

The canary is an early warning. If the new version has a memory leak, the canary's memory usage climbs while the old version stays flat. If it has a latency regression, the canary's p99 diverges from the fleet average. If it has a bug that causes errors, the canary's error rate spikes before the error reaches the whole user base.

The best canary systems are automated. They promote or roll back on predefined health metrics with no human involved. The pipeline pushes the new version to the canary, waits for a set observation period, compares metrics against thresholds, and then either promotes to full rollout or rolls back. A human is told the outcome but doesn't have to make the decision or carry it out.

The Psychology of Fearless Deployment

Decoupling deployment from release changes how a team feels about deploying, and the change is fast. Deployment anxiety goes away. Engineers stop treating deployment as a risky event and start treating it as routine, like merging a pull request or running tests.

The reason is that a bad deployment now has different consequences. In a coupled world it means users are affected, revenue is at risk and someone is going to have a bad night. In a decoupled world a bad deployment means nothing visible happened. The code is in production behind a flag and no users were affected. You can investigate at your leisure, during business hours, with a cup of coffee.

I've seen teams go from deploying once a week with a 30-minute deployment ceremony to deploying several times a day with no ceremony at all. They didn't get there through technical discipline. The fear went away. When deploying can't hurt users there is nothing to be afraid of, so you deploy small changes often, and when you deploy small changes often each deployment is trivially simple. This is the earlier cycle running the other way.

Reducing Batch Size

Separating deployment from release also makes small batches possible, and encourages them. When you can deploy without releasing, there's no reason to batch changes together. One developer finishes a feature and deploys it behind a flag. Another fixes a bug and deploys it immediately. A third refactors a module and deploys it alongside everything else.

Small batches pay off in several ways:

Trunk-based development goes naturally with this. When deployment is safe and frequent, long-lived feature branches have no purpose. Developers commit to main behind feature flags, and main is always deployable. Branches live for hours where they used to live for weeks, and the whole development workflow gets faster and simpler.

Release as a Business Decision

Once the two are separate, releasing becomes a business decision. The code is already in production and has been validated through dark launches or canary deployments. Nobody needs to ask "does this work?" any more. What's left to decide is when users should see it.

That gives product teams a control over timing that coupled deployment and release never allows. To coordinate a feature launch with a marketing campaign, flip the flag at the right moment; the feature has been deployed for a week. To soft-launch to a specific user segment for qualitative feedback before a broad release, route the flag to beta users. To launch in one region first and then expand, use geographic targeting in your flag configuration.

None of this needs engineering involved at launch time. The engineering work (writing the code, deploying it, validating it) is done days or weeks before the release. The release is a configuration change that a product manager can make from a dashboard. Engineering delivers the capability, and product decides when and how to expose it. That is a sound way for the two to work together.

The Operational Model

Making this work takes some operational discipline and some investment in tooling. You need four things:

Common Objections

"Feature flags add complexity." They do. They add less of it than rollback procedures, deployment ceremonies, change advisory boards and deployment freezes. The complexity of feature flags is structured and manageable. The complexity of high-risk, infrequent deployments is chaotic and unpredictable.

"We don't deploy often enough for this to matter." You don't deploy often enough because deployment is coupled to release. Separate them and you'll deploy more often, and each deployment will be smaller and safer. Safety comes first and frequency follows from it.

"Our system is too simple for this." If your system has users who depend on it, it isn't too simple. Even a straightforward web application gains from being able to deploy a database migration today and activate the feature that depends on it tomorrow. What makes this worth doing is risk, and any system with users has risk, however simple it is.

You can't deploy without risk. You can deploy without fear. When you separate what goes to the servers from what goes to the users, deployments become boring, and boring deployments are the foundation of high-velocity engineering.

Deploy your code the moment it's ready, and release your features when the time is right. Those are two decisions, made by different people at different times for different reasons. Once a team works that way, deployment stops being an event and becomes a continuous, routine process. The deployments you want are the boring ones that nobody notices because nothing went wrong.

Comments