Skip to content

hpbyte/go_load_balancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simplest Load Balancer written with Go

It uses the Round Robin algorithm to load-balance the backends and have a retry mechanism.

How to run

Create a few simple HTTP backends and run:

go run main.go -backends="http://localhost:8081,http://localhost:8082,http://localhost:8083,http://localhost:8084"

Test the load balancer

curl http://localhost:3030

About

simplest load balancer written in Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages