leastRequest constant
BackendService_LocalityLbPolicy
const leastRequest
An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests.
Implementation
static const leastRequest = BackendService_LocalityLbPolicy('LEAST_REQUEST');