knaxuslearn · build · ship

Projects / Load balancer / Before you start

Before you start

You need Go 1.22 or newer, curl, and a terminal on macOS or Linux. Check your version:

go version

Every listing and command in this project was run on Go 1.24 on Linux. Your timings will differ a little. The shape of the output is what matters.

Make a folder and a Go module:

mkdir lb && cd lb
go mod init lb

You will use several terminals, all inside the lb folder. Keep one for each of the three backend servers, one for the proxy, and one to run commands. Open the first terminals now. You will not need more than five.