simple-load-balancer

command module
v0.0.0-...-0a1200d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

README

simple-load-balancer

A simple load balancer in Go, based on [https://github.com/kasvith/simplelb].

Added code for setting up backends such that you can curl http://localhost:3030 (assuming default load balancer address) and see logs flowing. The address for backends are hardcoded, though.

build instructions

in the terminal, at the right working directory, type:

go build main.go

This should generate a binary called "main". Then

./main --backends=http://localhost:60000,http://localhost:60001

You can use curl to make an HTTP request to the load balancer.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL