What is a deployment? Explained with changing a shop sign
A deployment puts a new version of software live for customers; a rollback swaps the last working version back if it goes wrong. Like changing a shop sign and keeping the old one close.
- Author
Umair Mateen- Published
- Reading time
- 5 min
- Category
- DevOps
In one sentence: A deployment is the moment a new version of your software goes live for real customers, and a rollback is quickly putting the last version that worked back in place when the new one causes problems.
The everyday picture
Picture a shop on a busy street. The owner orders a new sign with a fresh design and new opening hours. One morning, before the doors open, it goes up over the entrance. From that moment, every passer-by sees the new sign. That is a deployment.
A careful owner does not throw the old sign away. It waits in the back room. If the new one has a spelling mistake, or shows the wrong hours and customers stay away, the owner takes it down and hangs the old one back up within minutes. That is a rollback.
The new sign can be fixed later, calmly, without customers standing in the rain reading the wrong hours.
A new version goes live and the team watches how customers are affected. If the checks look wrong, the last good version goes back up while the fix is made calmly.
How it works, step by step
- A new version is packaged (the new sign arrives from the printer). The team has built and tested a change, and wraps it up as a labelled version. Microsoft's guidance says to keep these versions labelled so you can move back and forth between them.
- The deployment puts it live (the sign goes up). The new version replaces the old one on the live system that customers use. Good teams do this with an automated, repeatable routine rather than by hand.
- The team watches what happens (the owner watches the street). Monitoring compares things like error rates and response speed with how they looked before. Google's SRE guide uses mainly these signals to judge a new release.
- If something looks wrong, they roll back (the old sign goes back up). The live system returns to the last version that was known to work. Amazon's guidance recommends that this happens automatically when pre-agreed warning signs appear, such as a failed check.
- The problem is fixed, then deployed again (the corrected sign goes up another day). Google's engineers describe their habit as rolling back first and investigating second.
Try it · Put it in order
Put a safe deployment in the right order
Tap the steps in the order they happen.
Many teams also change the sign in stages. A canary release gives the new version to a small group of customers first, like trying the new sign at one branch before putting it up at every branch. In a blue-green setup, two identical copies of the system run side by side, and customers are switched from the old copy to the new one. Rolling back is then simply switching them back.
Where the picture stops
- A sign does not change anything inside the shop. Software often does: a new version may change how data is stored. Google and Microsoft both warn that database changes can make a rollback hard, so teams plan them in careful steps.
- A sign is either up or down. Software can be live for a small share of customers and not for the rest, which a single shop front cannot do.
- The old sign sits in the back room by itself. In software, the previous version must be deliberately kept, and the rollback itself tested, or it may not work when needed.
Why it matters for your business
- Less downtime: going back to a known good version is usually quicker than writing an urgent fix under pressure, so customers are affected for less time.
- Lower risk with every change: Microsoft's guidance prefers frequent small deployments over rare large ones, because small changes are easier to sort out when something goes wrong.
- Calmer fixes: once the old version is back, the team can find the real cause properly instead of guessing in a rush.
- Regular updates stay safe: Microsoft also notes that not deploying brings its own risks, such as security holes that only an update can close.
Try it · What would you do?
Payments start failing right after a deployment. What now?
Your team deployed a new checkout page an hour ago. Monitoring shows card payments failing much more often than before, and it is your busiest time of day.
Pick what you would do. You can change your mind.
An example
Imagine a small online bakery. On Friday morning, the team deploys a new checkout page. Within ten minutes, monitoring shows card payments failing far more often than usual. Instead of patching live code during the weekend rush, they roll back to Thursday's version, and payments recover. On Monday they find the cause, test the fix and deploy again.
Frequently asked questions
What is the difference between deploying and releasing?
Deploying puts the new code on the live system. Releasing is when customers can actually use the new feature. Teams often use feature switches to deploy code first and turn the feature on later.
What does "roll forward" mean?
Rolling forward means fixing a problem by deploying a newer, corrected version instead of going back to the old one. It can work, but rushed fixes carry their own risk.
Can every deployment be rolled back?
Not always easily. Changes to stored data or database structure can make going back complicated, which is why teams plan those changes so both the old and new versions can work with the data.
Should a rollback happen automatically?
It can. Amazon's guidance recommends automatic rollback when agreed checks fail, so recovery does not wait for someone to notice and act.
Related explainers
The DevDrift sets up cloud deployments with automated checks and quick rollbacks: see how.
Sources
Could you explain this to a colleague now?
Mark it and posts that mention it will show a tick. Saved in this browser only.