GoLang gateway that distributes the incoming traffic to the BE servers.
- specify your BE/FE server url's in service.yaml
- start the load balancer just by runnig
go run main.go
--default port would be 8000, you can also allowed to pass the port number as an argument. - we are using the Round Robin technique to distribute the load among all the servers on a cyclical basis
--you can add or remove the servers in service.yaml at any given time ----
- I've created a simple bakend server, You can spin up mutiple BE servers just by passing portnumber as an arguments.
cd backendservers && go run main.go :8081 server1
cd backendservers && go run main.go :8082 server2
- run load balancer server
- add BE server url's in the server.yaml file
- you can test it by hitting the loader blancer URL mutiple times.
make load_server
-> to start the load balancermake server1 && make server2 && ...
-> to spin up the BE servers on different portsmake load_test
to perform a load test against the load balancer.