Graceful Restarts?
pyrossh opened this issue · 7 comments
How about integrating zero downtime restarts in gin server? Maybe using endless?
Adding a library like that may opens a new world of issues. I am not considering a built-in support for this right now. Even though, I am interested in zero downtime restarts.
If you want to start using endless
right now, just do this:
router := gin.Default()
router.GET("/", handler)
// [...]
endless.ListenAndServe(":4242", router)
I don't think it should be included in the library, it may be confusing for people just getting started with the library and may become an issue during development. I'm currently doing what @manucorporat suggested.
good tools is quick my develop speek!
Adding a library like that may opens a new world of issues. I am not considering a built-in support for this right now. Even though, I am interested in zero downtime restarts.
If you want to start using
endless
right now, just do this:router := gin.Default() router.GET("/", handler) // [...] endless.ListenAndServe(":4242", router)
endless not supported under windows platform.
Why not add this functionality in gin lib itself? Do we have any blocker for it?