Zero Downtime Deployment: How It Works and What It Costs

Zero downtime deployment means you can release a new version of your website or app while customers keep using it. Nobody sees an error page, and no order gets lost halfway through checkout. For a business that sells online, it decides whether an update on a Friday afternoon is routine or a risk.
We learned this the hard way. A deploy once took one of our own in-house projects down. It was not a client's system, but it showed us exactly what every deploy should do: start the new version, check it, and only then switch traffic to it, with a quick rollback ready.
How a deploy takes a site down
In the simplest setup, a developer stops the old version, copies the new code to the server and starts it again. Between the stop and the start, the site is down. If the new version crashes on start, because of a missing setting or a database change it expected, the site stays down until someone fixes it by hand.
Two other failures are less obvious. A database change can break the old version while it is still serving customers. And a "quick fix" typed straight onto the live server can be wiped out by the next proper deploy, or break something nobody tested.
How zero downtime deployment works
Every method follows the same idea. The new version runs next to the old one, gets checked, and only takes over once it is healthy.
Health checks decide when traffic moves
A health check is a small test the system runs against the new version before sending it customers. In Kubernetes, the readiness probe does this job: it determines when a container is ready to accept traffic. Without a check like this, traffic can move to a version that started but cannot serve a single page yet.
Blue-green deployment
In blue-green deployment, as Martin Fowler describes it, you keep two copies of the production environment. One is live. You deploy and test the new version on the idle one, then switch the router so all requests go to it. If anything goes wrong, you switch the router back. That switch-back is what makes rollback fast.
Rolling updates
A rolling update replaces the running copies of an app a few at a time instead of all at once. The Kubernetes documentation says rolling updates allow a Deployment update to take place with zero downtime by incrementally replacing Pod instances with new ones, and that they support rollback to previous versions.
You do not need Kubernetes to get these benefits. We run the systems we maintain on Docker with a deploy pipeline, so updates ship without taking the site down. The tool matters less than the order of steps: start, check, switch, keep the old version ready.
The database is the hard part
Code is easy to swap. Data is shared by the old and new version during the switch, so a change to the database has to work for both.
Fowler's advice for blue-green is to separate schema changes from application upgrades. First change the database so it supports both the old and new version, deploy that and check it, then deploy the new application. When the upgrade has settled, remove what only the old version needed. Fowler's parallel change pattern, also called expand and contract, breaks a backward-incompatible change into three phases: expand, migrate and contract.
In practice this means renaming a column takes two or three releases instead of one. It is slower to plan, and it is the reason customers never notice the change.
What it costs a small business
We will not quote a price here, because scope is agreed on a call. What drives the cost is clear, though.
The work at the start
Most of the cost comes once. Someone sets up the deploy pipeline and the health checks, so a new version starts and is checked before traffic moves to it. The database changes are planned to be backward-compatible, so old and new versions can run side by side. And a quick rollback is kept ready. Test that rollback before you need it.
The ongoing work
After setup, the cost is mostly discipline. Every change goes through the pipeline, and nothing is hand-edited on the server.
What you give up
The business owner gives up "quick fixes" made straight on the live server. That can feel slower on the day a typo needs fixing. It is also how you stop one rushed edit from taking the site down at a busy hour.
Questions to ask your developer
These three questions separate a real zero downtime setup from one that only claims to be.
- Ask what customers see if a deploy fails halfway, and how fast the developer can roll back.
- Ask how database changes are made so the old version keeps working during the switch.
- Ask to see the last deploy, and whether there was any moment the site returned errors.
A developer with a real setup can answer all three with specifics, and can show you the pipeline and the deploy history. Vague answers such as "we're careful" or "it only takes a minute" are a warning sign that the site may go down during deploys.
If you are planning a new system, see what we build on our software development page, and how we handle hosting and releases on our DevOps page.
Book a free call with Linkfa (https://linkfa.de/talk?ref=zero-downtime-deployment).