This is a load balancer example, for this example, I am using Nginx as the load balancer and a web server wroten in go
three replicated machines were created to handle the load and the nginx uses the round robin strategy to determine which machine to hit for each request.
- go
- nginx
- docker
$ docker compose build
$ docker compose up -d
go to http://localhost:8080