A simple load balancer written in Go.
- Use Round Robin algorithm
- Health check to recovery for unhealthy servers in every 1 min
$ go-simple-lb -port 8080 -servers=http://localhost:8081,http://localhost:8082,http://localhost:8083
$ docker-compose up --build
# send request to load balancer
$ curl :8080
{"hostname":"25e08d5ffec5"}
$ curl :8080
{"hostname":"2df976f69607"}
$ curl :8080
{"hostname":"5d96ca9bd34d"}
$ curl :8080
{"hostname":"25e08d5ffec5"}