Gobetween

☁️ Modern & minimalistic load balancer for the Сloud era
Alternatives To Gobetween
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Gobetween1,6731a year ago1March 30, 202198otherGo
:cloud: Modern & minimalistic load balancer for the Сloud era
Ops1,077
9 days ago54April 21, 2021140mitGo
ops - build and run nanos unikernels
Docklands322
a year ago17apache-2.0Dockerfile
Minimalistic Java EE / Jakarta EE / MicroProfile Related Dockerfiles
Pine15
5 months ago1mitShell
Alpine Linux on OSTree, minimalistic os updated through atomic upgrades, for servers
Storelocatorjs9
3 months ago4April 08, 202013JavaScript
🗺️ Storelocatorjs is a fast and lightweight Javascript library for build your own customizable store locator with a minimalist theme. The cloud function is included to handle store filter requests.
Lazybin4
2 years ago4gpl-3.0HTML
:lock: a minimalistic AES-256 encrypted databaseless pastebin supporting code highlighting designed for sharing code snippets
Ape3
5 years agomitJavaScript
Apé | Ultra-minimalistic Node.js redirect server. 👣
Docker Padlock3
5 years ago
DEPRECATED: use official padlock/padlock-cloud image
Bosh Softlayer Cpi Release Deprecated To_be_deleted3
6 years ago3apache-2.0Go
A BOSH release for the bosh-softlayer-cpi written in Golang and using the new BOSH external CPI release fashion.
Cloud_erp_api2
3 years agoapache-2.0JavaScript
REST API for Cloud ERP app developed in Flutter
Alternatives To Gobetween
Select To Compare


Alternative Project Comparisons
Readme

Stand With Ukraine

gobetween

Tag Build Status Go Report Card Docs Docker Snap Status Telegram License

gobetween - modern & minimalistic load balancer and reverse-proxy for the ☁️ Cloud era.

Current status: Maintenance mode, accepting PRs. Currently in use in several highly loaded production environments.

Features

  • Fast L4 Load Balancing

  • Clear & Flexible Configuration with TOML or JSON

    • File - read configuration from the file
    • URL - query URL by HTTP and get configuration from the response body
    • Consul - query Consul key-value storage API for configuration
  • Management REST API

    • System Information - general server info
    • Configuration - dump current config
    • Servers - list, create & delete
    • Stats & Metrics - for servers and backends including rx/tx, status, active connections & etc.
  • Discovery

    • Static - hardcode backends list in the config file
    • Docker - query backends from Docker / Swarm API filtered by label
    • Exec - execute an arbitrary program and get backends from its stdout
    • JSON - query arbitrary http url and pick backends from response json (of any structure)
    • Plaintext - query arbitrary http and parse backends from response text with customized regexp
    • SRV - query DNS server and get backends from SRV records
    • Consul - query Consul Services API for backends
    • LXD - query backends from LXD
  • Healthchecks

    • Ping - simple TCP ping healthcheck
    • Exec - execute arbitrary program passing host & port as options, and read healthcheck status from the stdout
    • Probe - send specific bytes to backend (udp, tcp or tls) and expect a correct answer (bytes or regexp)
  • Balancing Strategies (with SNI support)

    • Weight - select backend from pool based relative weights of backends
    • Roundrobin - simple elect backend from pool in circular order
    • Iphash - route client to the same backend based on client ip hash
    • Iphash1 - same as iphash but backend removal consistent (clients remain connecting to the same backend, even if some other backends down)
    • Leastconn - select backend with least active connections
    • Leastbandwidth - backends with least bandwidth
  • Integrates seamlessly with Docker and with any custom system (thanks to Exec discovery and healthchecks)

  • Single binary distribution

Architecture

gobetween

Usage

Hacking

Debug and Test

Run several web servers for tests in different terminals:

  • $ python -m SimpleHTTPServer 8000
  • $ python -m SimpleHTTPServer 8001

Instead of Python's internal HTTP module, you can also use a single binary (Go based) webserver like: udhos/gowebhello

gowebhello has support for SSL sertificates as well (HTTPS mode), in case you want to do quick demos of the TLS+SNI capabilities of gobetween.

Put localhost:8000 and localhost:8001 to static_list of static discovery in config file, then try it:

  • $ gobetween -c gobetween.toml

  • $ curl http://localhost:3000

Enable profiler and debug issues you encounter

[profiler]
enabled = true     # false | true
bind    = ":6060"  # "host:port"

Performance

It's Fast! See Performance Testing

The Name

It's a play on words: gobetween ("go between").

Also, it's written in Go, and it's a proxy so it's something that stays between 2 parties 😄

License

MIT. See LICENSE file for more details.

Authors & Maintainers

All Contributors

Community

  • Join gobetween Telegram group here.

Logo

Logo by Max Demchenko

Popular Minimalist Projects
Popular Cloud Computing Projects
Popular User Interface Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Go
Golang
Docker
Cloud
Proxy
Tcp
Udp
Minimalistic
Tls
Discovery
Consul
Letsencrypt
Load Balancer
Proxy Server
Lxd