How about integrating zero downtime restarts in gin server? Maybe using endless?
https://github.com/fvbock/endless
Comment From: manucorporat
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)
Comment From: elliotlings
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.
Comment From: shotcat
good tools is quick my develop speek!
Comment From: jacktuck
Manners by the folks at BrainTree seems like an alternative to endless :smiley:
Comment From: appleboy
@jacktuck Thanks. I already create new PR #561 to update README.
Comment From: walleliu1016
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:
go router := gin.Default() router.GET("/", handler) // [...] endless.ListenAndServe(":4242", router)
endless not supported under windows platform.
Comment From: BlaiseAntony
Why not add this functionality in gin lib itself? Do we have any blocker for it?