An open API service indexing awesome lists of open source software.

https://github.com/visheshsinha/load-balancer-go

Load Balancer to forward request to multiple HTTP Servers using round robin algorithm and health check functionality.
https://github.com/visheshsinha/load-balancer-go

flask golang load-balancer python reverse-proxy round-robin

Last synced: 6 months ago
JSON representation

Load Balancer to forward request to multiple HTTP Servers using round robin algorithm and health check functionality.

Awesome Lists containing this project

README

          

### Load Balancer - Go Lang

Fire-up multiple HTTP servers (Flask Required):

```
python src/server.py "Server-Name" "Port No."
for i in {1..5}; do python src/server.py "Server-$i" "500$i" & done
```

While importing `gocron` do this after writing the import statement:

```
go mod init examplem/load-balancer
go mod tidy
```

Get the loadbalancer online:

```
go run src/loadbalancer.go
```

Land multiple requests on the loadbalancer using `curl` command:

```
for i in {1..10}; do curl 127.0.0.1:8000; done
```