lyubchev / golb

⚖️ load balancer written in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⚖️ golb

a simple Go Load-Balancer written from scratch

Hits

Round-Robin Demo

In the demo we spin up 10 instances, but we have the second instance be-2 intentionally fail, thats why in the video after be-1 we go to be-3

Features

  • Round-Robin Load-Balancing
  • Health-Check
  • Weighted Round-Robin Load-Balancing
  • Random Load-Balancing
  • Weighted Random Load-Balancing
  • Dynamic Weighted Round-Robin Load-Balancing
  • Least-Connection Load-Balancing
  • Peak Exponentially Weighted Load-Balancing
  • Keep-Alive Connection
  • Logging
  • Metrics
  • Circuit-Breaker
  • Sticky Sessions

Why

I found this cool website and decided to give it a try.

Also previously inspired by Sam's awesome load-balancing visualization blog article here

Run locally

git clone http://github.com/impzero/golb

or

git clone git@github.com:impzero/golb

then

cd golb
go run main.go

About

⚖️ load balancer written in Go


Languages

Language:Go 100.0%