Skip to content

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

License

Notifications You must be signed in to change notification settings

visheshsinha/load-balancer-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published