Browse by type
A Load balancer which distributes requests to many servers, implemented from scratch in go lang.
Static load Balacing: Acheived using Round robin assumes optimistic requests completion.
Periodic Health Checks: Hits health check end points after a specific timeout can be tuned according to use case.
Active Passive Server Management: Requests wont be redirected to failing servers or servers that are shutdown.
GET /
Redirects the request to server according to algorithmn, copies the response and sends back to client.
GET /
Returns the message from servers. For easier identification I explicitly specified Server Id.
GET /healthcheck
Returns health message with 200 status code.
Clone the project
git clone https://github.com/adityadafe/load-balancer
Go to the server directory
cd server
Run server
go run .
Go to loadbal directory
cd loadbal
Run loadbalancer
go run .
This is not recommended to put in production enviornment use battle tested lb like fabio
I have created branches with different versions and implementation. In coming time i will add registry endpoint for service registry.
$ claude mcp add load-balancer \
-- python -m otcore.mcp_server <graph>