Deploying an update without taking the service down
Downtime during deployment is usually a missing step in the sequence, not a hard technical problem. Health checks and a gradual switch do most of the work.
The new version starts next to the old one. Once it answers correctly it takes a share of the traffic, and the old version keeps serving until the switch is complete.
Health checks have to be real: verify the database and third-party services, not just that the process is alive. Many incidents happen while the new version reports itself healthy but cannot serve a request.
If a small share of requests fails, rolling back must be one action, not a full redeploy from scratch.
- CI/CD
- deploy
- Docker