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

Power of Two Choices node selection algorithm.

Picks two random nodes and selects the one with fewer active connections.
Provides a good balance between simplicity and load distribution without
the overhead of scanning all nodes like Least Connections.

Uses the same connection counter infrastructure as `LeastConnections`.
`release_node/2` must be called when calls complete.

---

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