Balance Hub
Traffic distribution at the speed of infrastructure, designed for zero-config scale, built for full-control flexibility
Project
Open Source
Type
HTTP
Load Balancer
Technology
Golang, SQLite, Redis
Features
no restarts, no config reloads, no downtime.
BalanceHub is built on a dual listener architecture, a full HTTP(S) reverse proxy and a binary control-plane. Backend servers self-register at runtime with fine-grained routing rules, building a live routing table with zero manual intervention.
Dynamic Server
Registration
Response
Caching
Fault
Tolerant
Traffic
Management
Custom
Protocol
Aync
Logging
Configuration
A single config.yaml governs every runtime behavior, from port binding to TLS mode to Redis topology. The file is parsed once at startup into a typed Go singleton. Servers can declare path-level affinity (e.g., serve only /api/v2/) and client-IP restrictions (individual IPs or CIDR subnets)
Custom TCP Protocol
Backends join or leave the cluster at runtime over the TCP control plane. Registration writes atomically updating in-memory routing table simultaneously. Rather than exposing an HTTP management API, BalanceHub implements a compact binary protocol over a raw TCP socket. Session-level pipelining allows multiple operations in a single connection.
Algorithms
Least-Connections routing directs each request to the backend with the fewest active connections, staying balanced under real traffic patterns.
An active health-check loop continuously monitors backends ensuring automatic recovery.
Technology
stack
Golang
Redis
Sqlite
Docker