udhos / gracefulrestart

gracefulrestart demonstrates how to gracefully restart a http server in Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gracefulrestart

gracefulrestart demonstrates how to gracefully restart a http server in Go.

Usage

Clone:

git clone https://github.com/udhos/gracefulrestart
cd gracefulrestart

Build:

go install ./...

Run:

gracefultrestart

Test with curl:

while :; do curl localhost:8080/hello; done

Test with k6:

k6 run --vus 30 --duration 30s k6-script.js

About

gracefulrestart demonstrates how to gracefully restart a http server in Go.

License:MIT License


Languages

Language:Go 88.6%Language:Shell 7.1%Language:JavaScript 4.3%