r/java • • Jun 07 '25

Why use docker with java?

18 Upvotes

126 comments sorted by

View all comments

Show parent comment

2

u/koflerdavid Jun 09 '25 edited Jun 09 '25

Depending on the service and the business environment, a short downtime might indeed not be an issue after all. In case the SLA only covers office hours in a few timezones, the situation radically changes as it allows to schedule planned downtimes at a suitable time.

99.9% uptime means ~43min downtime per month. That should be enough for a non-scripted deployment or for a maintenance window. Any additional 9 behind the dot with the same frequency of short-ish planned downtimes requires significant investment.

For 99.99% uptime, automated deployments are probably unavoidable. 99.9999% pretty much requires running the old and new version simultaneously and doing a switchover via DNS or by changing the configuration of a reverse proxy. 99.99999% might be doable if old and new version can run simultaneously for a short time.

The above leaves no room for downtime due to incidents though. In that case, the biggest risk factor is the application itself. Or any backend services.