Skip to content

tawseefnabi/simple-lb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Simple LB

A simple load balancer written in Go.

  • Use Round Robin algorithm
  • Health check to recovery for unhealthy servers in every 1 min

Usage

$ go-simple-lb -port 8080 -servers=http://localhost:8081,http://localhost:8082,http://localhost:8083

Demo

$ docker-compose up --build

# send request to load balancer
$ curl :8080
{"hostname":"25e08d5ffec5"}
$ curl :8080
{"hostname":"2df976f69607"}
$ curl :8080
{"hostname":"5d96ca9bd34d"}
$ curl :8080
{"hostname":"25e08d5ffec5"}

About

Simple LB is the simplest Load Balancer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published