Skip to content

Releases: bimakw/api-gateway

v1.6.0 - Load Balancer

01 Feb 08:41
2e48327

Choose a tag to compare

What's New

This release adds Load Balancing support for multiple backend instances with health-aware routing.

Features

  • Load Balancing Strategies: Round-robin and random selection
  • Multiple Backends: Configure multiple instances per service
  • Health-Aware Routing: Automatically skips unhealthy backends
  • Health Callback: Real-time health status propagation to load balancer
  • Observability: X-Backend response header shows which backend handled the request

Configuration

# Multiple backends (comma-separated)
AUTH_SERVICE_BACKENDS=http://auth1:8080,http://auth2:8080,http://auth3:8080

# Load balancing strategy (default: round-robin)
AUTH_SERVICE_STRATEGY=round-robin

Backward Compatibility

Existing single-backend configuration still works:

AUTH_SERVICE_URL=http://localhost:8080

Test Coverage

  • Load balancer package: 93% coverage
  • All existing tests pass

Full Changelog: v1.5.0...v1.6.0