Application Level Load Balancer written in Go
Domenico Luciani
https://domenicoluciani.com
It represents the load balancer which is in charge of redirecting requests towards other servers
To run it:
- Set the address of your server instances into the main
- Set your healthcheck endpoint
- Set your healtcheck time frame
go build
./spartimillu
curl http://localhost/ --output -
This directory contains the folders which will represent 2 services, to start them cd bg
and into two separates terminal instances:
- server8080:
python -m http.server 8080 --directory server8080
- server8081:
python -m http.server 8081 --directory server8081
The project is composed by unit and integration tests, to run all of them: go test ./...
.
- unit tests:
server/server_test.go
- integration tests:
client/client_test.go
This is the implementation of the WC Coding Challenge with Go, following those requirements step-by-step.
Any idea or feedback to make it better are always welcomed!