K
K
kagary 062019-05-30 13:23:20
go
kagary 06, 2019-05-30 13:23:20

What are the libraries for building a load balancer in Go?

Good afternoon.
Please recommend libraries, books, articles about building a load balancer for web servers.
First of all, I'm interested in balancing HTTP / HTTPS traffic, but if anyone knows good links for other protocols, I'll be glad to learn something new for myself.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
uvelichitel, 2019-05-30
@kagary06

Go was designed to solve problems at a fairly high level of abstraction (servers and services). A simple and fast balancer is best done with nginx(Plus) settings and sometimes even with a router (physical device) configuration.
Go has popular solutions for specific areas https://github.com/containous/traefik and https://github.com/yyyar/gobetween for the now popular container and cloud architectures, https://github.com/google/seesaw produced by google for Linux Virtual Server (LVS) architecture.
If you just need an HTTP / HTTPS traffic balancer, you can easily google the three lines of the nginx configuration. If you want to understand the material and raise the skill balancer on Go, you will write 50-100 lines of code after reading a couple of blogs, it will not be fast, for speed in a simple task you need to be closer to the hardware.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question