H
Hono3mo ago
lukas

Hono Graceful Shutdown: Bun

Hono example with bun doesn't allow the use of Bun.serve, which would expose a method to stop or close. HonoJS app instance doesn't expose any method to close or stop all incoming connections to wait the resolve of all request before shutting down. In production apps graceful shutdown would allow for server to restart gracefully. How to do that in Hono?
1 Reply
Aditya Mathur
Aditya Mathur2mo ago
You can use bun serve with hono. hono instance has a fetch function which you can pass in bun.serve

Did you find this page helpful?