Gin: Graceful Restarts?

Created on 21 May 2015  路  5Comments  路  Source: gin-gonic/gin

How about integrating zero downtime restarts in gin server? Maybe using endless?

https://github.com/fvbock/endless

enhancement question wontfix

Most helpful comment

@jacktuck Thanks. I already create new PR #561 to update README.

All 5 comments

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!

Manners by the folks at BrainTree seems like an alternative to endless :smiley:

@jacktuck Thanks. I already create new PR #561 to update README.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bloomca picture Bloomca  路  3Comments

kekemuyu picture kekemuyu  路  3Comments

CodingPapi picture CodingPapi  路  3Comments

lilee picture lilee  路  3Comments

boneq picture boneq  路  3Comments