# `RpcLoadBalancer.LoadBalancer.SelectionAlgorithm.LeastConnections`
[🔗](https://github.com/MikaAK/rpc_load_balancer/blob/main/lib/rpc_load_balancer/load_balancer/selection_algorithm/least_connections.ex#L1)

Least connections node selection algorithm.

Tracks active connection counts per node using ETS counters and always
selects the node with the fewest active connections. When a call completes,
`release_node/2` must be called to decrement the counter. The convenience
API in `RpcLoadBalancer.LoadBalancer.call/5` handles this automatically.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
