Overview
A Layer 4 TCP load balancer written in Rust. Supports multiple distribution algorithms including round-robin, least-connections, and weighted distribution. Designed for learning and small-scale production use.
Algorithms
- Round-robin -- simple sequential distribution
- Least-connections -- routes to the backend with fewest active connections
- Weighted -- distributes based on configured backend weights
- IP-hash -- consistent hashing for session affinity
Health Checking
Active health checks with configurable intervals, timeout thresholds, and automatic backend removal and recovery.