# Zero downtime deployment guidance

**URL:** <https://forums.swift.org/t/zero-downtime-deployment-guidance/40947>\
**Category:** Vapor\
**Tags:** server, deployment, downtime\
**Created:** [October 6, 2020, 6:37am UTC](https://forums.swift.org/t/zero-downtime-deployment-guidance/40947 "2020-10-06T06:37:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeehut](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jeehut/32/21743_2.png) [@Jeehut](https://forums.swift.org/u/Jeehut)\
**Post date:** [October 6, 2020, 6:37am UTC](https://forums.swift.org/t/zero-downtime-deployment-guidance/40947/1 "2020-10-06T06:37:52Z")

</div>

Currently, in the docs we have guidance on how to setup a server on [DigitalOcean](https://docs.vapor.codes/4.0/deploy/digital-ocean/) (mostly transferable to other virtual server providers), on [Heroku](https://docs.vapor.codes/4.0/deploy/heroku/) and on any provider that supports [Docker](https://docs.vapor.codes/4.0/deploy/docker/). These are 3 different deployment types that we provide official help for.

But in a production environment, it is also important to make sure that while we're deploying a new version of a Vapor app to the server, that the servers are not down (for more than a few seconds). This is called "Zero Downtime Deployment". Currently, the docs have basically no information on the downtime at all. There might even be already some things in place (e.g. by using SuperVisor/Nginx/Docker features) which help with that, but I can't find clear information on it and I think it's important.

Otherwise especially beginners will probably not be aware that while they're deploying a new version – ans especially if something goes wrong during the deployment – their APIs or websites might be offline for a while.

Any inputs, ideas or links about this topic related to Vapor?
