Hey team, Is there a a built in or best practice ...
# http4k
n
Hey team, Is there a a built in or best practice way to handle graceful shutdowns?
s
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
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
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