Skip to content

billymfl/go-loadbalancer-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-loadbalancer-example

Writing the Node.JS loadbalancer in golang to learn the language. So far it has helped me see changes I can apply in the Node.JS implementation.

First go thru is learning go's idomatic way of doing things. Next is to use packages (ex, viper) for the env vars.

Running locally (not in a container)

Compile

go install $(echo $GOPATH)/src/github.com/billymfl/go-loadbalancer-example

Run

KEY=<KEY> $(echo $GOPATH)/bin/go-loadbalancer-example

Running in a container

Build docker image

docker build -t loadbalancer-go .

Start an instance of the app

docker run --rm -p 80:80 -e "KEY=<KEY>" loadbalancer-go:latest

Usage

See Usage - Registering a server for the Node.JS version on how to use the loadbalancer.

About

Go version of the Node.JS loadbalancer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published