EM

Dock

HomeBlogLearning PathsPricingAbout MeContact

What a Deployment Is (And Why It Can Be Risky)

Sandeep Varma

Sep 26, 2026
What a Deployment Is (And Why It Can Be Risky)
Photo by Sandeep Varma on EMDock

The last post in this series ended with a claim worth sitting with for a moment: one of the biggest sources of unexpected downtime is not some outside event beyond anyone's control, like a random hardware failure. It is the act of intentionally changing the system. Engineers call this a deployment, and understanding what it actually involves explains why even confident, experienced teams treat the moment of shipping new code with real care.

A Show That Never Fully Closes

Imagine a long-running theater production, the kind that performs every single night, sometimes several times a day, for months or years. Now imagine the production team wants to update something, swap out a prop, adjust the lighting cues for one scene, change a line of dialogue. In an ordinary workshop or rehearsal space, that kind of change is easy. You are not performing for anyone, so you can experiment freely, make a mistake, and simply try again.

But this production does not have the luxury of a fully empty theater to work in. The show runs constantly, often changing to a new audience within hours of the last performance ending. The moment the crew wants to introduce that updated prop or adjusted lighting cue, they have to do it in a theater that is either currently hosting an audience or about to host one again very soon. There is no long, comfortable pause where the stage sits empty and nothing is at stake.

This is essentially the situation every software team is in almost all the time. The "theater" is the live, running system that real users are actively using, right now, possibly in a dozen different time zones at once. A deployment is the moment new code, the updated prop, the adjusted cue, gets introduced into that system while it is still very much in use.

Why Deployments Are Never Fully Risk-Free

In a perfect world, a team could test a change so thoroughly beforehand that deploying it would carry zero risk. In practice, this is essentially impossible, for a reason that maps directly onto our theater analogy. A dress rehearsal, however careful and thorough, is still not opening night. The lighting looks the same, the actors say the same lines, but an empty house behaves differently from a full one. Sound bounces differently. Actors adjust their timing to real reactions rather than an imagined audience. Something about a real, live performance always introduces conditions a rehearsal could not perfectly anticipate.

Software has an almost identical gap between testing and production. Before a change goes live, it is typically tested in an environment built to resemble the real system as closely as possible, but that environment rarely has the exact same volume of real user traffic, the exact same messy, inconsistent real-world data accumulated over years, or the exact same combination of unusual, unpredictable ways real people actually use a product. A change can pass every test in rehearsal and still behave differently the moment it meets a full house of real users doing things nobody quite anticipated. This is not a sign of a careless team. It is closer to an unavoidable fact about the difference between a controlled rehearsal and a live, unpredictable audience.

Rollback: Keeping the Old Set Ready Backstage

Because that risk can never be reduced all the way to zero, experienced production crews plan for the possibility that a change does not go as expected, and software teams do the same thing.

A well-run production does not throw away last night's set the moment a new one goes up. The old set, the old prop, the previous lighting configuration, tends to stay ready backstage for a while, precisely in case tonight's new version causes a problem partway through the show, an actor trips over a poorly placed new prop, a lighting cue misfires and leaves the stage dark at the wrong moment. If something goes wrong, the crew can quickly swap back to the version that was already working reliably, rather than trying to improvise a fix live, in front of the audience, under pressure.

Software teams call this a rollback, and it works on exactly this principle. When a new deployment causes real problems, the fastest and often safest response is not to frantically try to patch the new code while it is live and actively affecting users. It is to switch back to the previous, known-working version almost immediately, buying time to properly understand and fix the actual problem somewhere calmer, away from the live show. This is a big part of why the reliability numbers we discussed in the previous post are so sensitive to how quickly a team can detect and recover from a bad change, not just how good their testing was beforehand. A team that can roll back in two minutes experiences a very different amount of real-world downtime than a team that takes two hours to notice and revert the exact same mistake.

Not Everyone Sees the New Version at Once

Another technique borrowed almost directly from the world of live performance is the idea of a preview or soft opening before a full public release. Rather than unveiling a significant new change to the entire audience on the very same night, a production might quietly try it out during a single preview performance, with a smaller crowd, watching closely for problems before committing to it for every remaining show.

Software teams frequently do the same thing, often called a canary release. Instead of sending a new version of the code out to every single user simultaneously, the new version is first shown to a small slice of real traffic, maybe one percent of users, while the vast majority continue safely on the previous, already-proven version. If that small slice reveals a problem, only a small fraction of users were ever affected, and the team can roll it back having limited the damage significantly. Only once the new version has proven itself reliable with that smaller audience does it gradually roll out to everyone else. This turns a single, all-or-nothing opening night into something closer to a series of increasingly confident previews, each one reducing the odds that a serious problem reaches the entire audience all at once.

Why This Matters Even When Nothing Visibly Changes

One detail that often confuses people outside engineering is that a deployment can carry real risk even when the change itself sounds completely invisible to users, an internal cleanup, a small performance improvement, a minor rewording behind the scenes. This makes sense once you remember the theater analogy. Even a seemingly minor adjustment, moving a prop two feet to the left, requires physically touching the live stage, and touching the stage always carries at least some chance that something unrelated gets bumped, unplugged, or knocked slightly out of place in the process. It is not the visible size of the change that determines the risk. It is the fact that something is being altered in a system that is currently, actively in use.

This connects directly back to something we discussed a few posts ago in this series, about why software changes take longer than expected. A change that looks small on the surface can quietly touch far more of the live system than it appears to, and every one of those touchpoints is a place where a deployment can introduce something unexpected, however careful and well-intentioned the original change was.

Bringing It Together

A deployment is simply the moment new code moves from a rehearsal environment into the live, running system that real people depend on. It is risky not because engineers are careless, but because a rehearsal, however thorough, can never fully replicate the unpredictability of a real, live audience. Practices like keeping a previous version ready for a quick rollback, and rolling changes out gradually to a small audience before the whole one, exist precisely because that risk can be managed and contained, even though it can never be eliminated entirely.

What Comes Next

Even with careful rehearsals, gradual rollouts, and a fast rollback ready to go, things still occasionally go wrong, and not always because of a deployment specifically. The next post in this series looks at a broader question this naturally leads to: why do bugs happen at all, even on teams full of skilled, careful, experienced engineers?

What Do You Think?

Have you been part of a launch, a rollout, or a release, software or otherwise, where a small, seemingly invisible change caused a surprisingly visible problem once it actually went live? I would love to hear what that moment looked like from where you were sitting.

Enjoyed this? Get the next one by email

New posts on leading engineering teams, straight to your inbox.

No spam. Unsubscribe any time.

Did you find this useful?


Comments

Loading comments...

to post a comment.


About the author

Sandeep Varma

Senior Engineering Manager

I write about leadership and software engineering from experience as a software engineer, product owner, and engineering manager, grounded in a Bachelor’s in Computer Science Engineering and an MBA in IT Strategy.

View full profile

Continue reading

Next →

Why Bugs Happen Even With Good Engineers


Reliability, Availability, and Uptime Explained