Repository

jbarham/rsvp

rsvp

Easily add graceful shutdown to Go HTTP servers

8stars

Open github.com

jbarham/rsvp

rsvp

Go library providing drop-in graceful shutdown for HTTP servers, with configurable signals, timeout, TLS, and logging.

Visit project

Show me a random project

First shared
Jun 22, 2026
HN activity
30

Show HN@jbarhamJun 22, 2026

Show HN: RSVP is a Go library for HTTP server graceful shutdown

After then nth time copying and tweaking boilerplate Go code to enable HTTP graceful shutdown, I decided to package it up in to a library which I've called rsvp (i.e, "please respond"). Basic usage is to call rsvp.ListenAndServe which is a drop-in replacement for the standard library http.ListenAndServe function with graceful shutdown. The default behavior can be customized with options to configure trigger signals, shutdown timeout and context, TLS and logging. Full documentation with sample code is at https://pkg.go.dev/github.com/jbarham/rsvp#section-documenta....

Community

Hacker News discussion

Loading the thread…