Skip to content

thebigbone/load-balancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

a simple round robin balancer

installation

  • install go
  • run go mod tidy for installing dependencies

start a few servers

  • go run server.go -port 8081
  • go run server.go -port 8082

start the load balancer

  • cd balancer
  • go run balancer.go

send requests to the balancer

  • curl 127.0.0.1:8000/hello
  • requests are sent to the servers in a linear way

About

a simple load balancer in go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages