All Projects
Open Source
RustNetworkingTCP
July 18, 2024

Load Balancer

A Layer 4 TCP load balancer in Rust with round-robin, least-connections, and weighted distribution algorithms.

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.

Developed by

Shyam