https://kotlinlang.org logo
#ktor
Title
# ktor
r

robnik

09/27/2020, 1:26 AM
Does anyone use Ktor for a web server and update the code without any downtime? I currently have a small digitalocean server, and I use Kotlin + Wildfly. I can update the war and redeploy in a few seconds. I want a way to get that redeploy downtime to zero. I have some websocket connections between the server and apps. Maybe I can swap in a new ktor process while the old one gracefully shuts down its connections.
👀 1
s

Sourabh Rawat

09/28/2020, 2:39 PM
not sure how you would do in digital ocean. But in our company we use a load balancer and blue-green deployment for ~0 downtime.
r

robnik

09/28/2020, 6:32 PM
Interesting. Thanks.
2 Views