Simple round-robin load balancer with health checks implemented using Go, demo
Usage of ./load-balancer:
-backends string
Load balanced backends, use commas to separate
-port int
Port to serve (default 80)
- Build the load balancer:
make build
- Run the balancer and 3 example web-servers:
make run
- The balancer will be listening on port
8080
- Run tests:
make test