Infrastructure · Software component

Least-Connections Load Balancer

Software componentInfrastructureInfrastructurearc:LeastConnectionsLoadBalancer

A load balancer that tracks in-flight requests per replica and sends each new request to the replica with the fewest active requests, adapting to variable request durations.

Responsibility. Routes each request to the replica currently handling the fewest active requests.

Also known as: Least connections

Variant of Load Balancer abstract

When to choose. Choose as the default when request durations vary widely (e.g., 90% under 2 s, 10% over 10 s).

specializesreceives data fromalternative toalternative toalternative toalternative toLoad Balancer: specializesLoad BalancerContainer Health Prober: receives data fromContainer Health ProberSession Affinity Load Balancer: alternative toSession Affinity Load Ba…Metric-Aware Load Balancer: alternative toMetric-Aware Load BalancerWeighted Round-Robin Load Balancer: alternative toWeighted Round-Robin Loa…Round-Robin Load Balancer: alternative toRound-Robin Load Balancer
Direct neighbourhood (hover for relationship types)

Relationships

receives data from dynamic

alternative to variability

Design guidance

Quantitative guidance

As stated by the sources; verify before use.

Classification

Patterns
Least-connections routing
Quality attributes
Performance efficiency (ISO/IEC 25010)Flexibility (ISO/IEC 25010)
Risks mitigated
Long-running requests clustering on one replica

Sources

  1. Ch4.7: T. Nguyen, "Scaling Strategies," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 4.7. ISBN: 9798244538229.