Available on crate feature
client only.Expand description
HTTP Loadbalance Layer
This is a copy of volo::loadbalance::layer without the retry logic. Because retry needs the
Req has Clone trait, but HTTP body may be a stream, which cannot be cloned. So we remove
the retry related codes here.
In addition, HTTP service can use DNS as service discover, so the default load balance uses a DNS resolver for pick a target address (the DNS resolver picks only one because it does not need load balance).
Structs§
- LbConfig
- Load balance layer generator with a
LoadBalanceand aDiscover - Load
Balance Layer Layerfor load balance generated byLbConfig- Load
Balance Service Servicefor load balance generated byLoadBalanceLayer
Type Aliases§
- Default
Lb - Default load balance with
DnsResolver - Default
LbService - Default load balance service generated by
DefaultLb