https://kotlinlang.org logo
#http4k
Title
# http4k
n

Norman

07/12/2021, 4:05 PM
Hey team, Is there a a built in or best practice way to handle graceful shutdowns?
s

s4nchez

07/12/2021, 4:07 PM
Graceful shutdowns depend a lot on the underlying server implementation. We’re trying to create a shared abstraction for this concert but it’s still work in progress: https://github.com/http4k/http4k/pull/469
🙏 1
n

Norman

07/12/2021, 4:14 PM
I see, so currently in HTTP4k the methods are available to run a "graceful" shutdown, but the primary issue is the webserver serving the kotlin app. Am I on the right track ?
s

s4nchez

07/12/2021, 4:16 PM
Not quite. Http4k doesn’t include methods for graceful shutdown (yet) but you can achieve that via custom webserver configuration
For instance, you can configure an undertow for graceful shutdown and use that instead of the built-in http4k implementation
5 Views