Zero Downtime Deploys?

So I’d like to use single instance of caddy to proxy to a single jvm app which takes ~15 seconds to start up each time a new version is deployed, which often happens many times each day during somewhat busy periods. This is not a big complex or high traffic application, and really only needs a single server, but ideally I’d like users to not experience any downtime or unable to connect to the server messages during these deploys.

How might someone go about accomplishing this with caddy?

Has anyone considered a plugin that might handle this sort of deploy automatically by using say 2 specified proxy ports and when running on one, if the other becomes available, switch over, and vice versa?

Thanks!

You could approximate this using the proxy directive and its health-checking mechanisms.

2 Likes

This is the correct answer. :blush:

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.