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.
- Host: GitHub
- URL: https://github.com/visheshsinha/load-balancer-go
- Owner: visheshsinha
- License: mit
- Created: 2022-10-01T17:52:12.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-18T09:49:19.000Z (over 3 years ago)
- Last Synced: 2024-11-25T12:05:21.373Z (over 1 year ago)
- Topics: flask, golang, load-balancer, python, reverse-proxy, round-robin
- Language: Go
- Homepage:
- Size: 3.74 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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
```