Why Microsoft.Extensions.ServiceDiscovery P5 version removing several algorithms for load balancing, leaving only RoundRobinServiceEndpointSelector #3640
-
Why P5 version removing several algorithms for load balancing, leaving only RoundRobinServiceEndpointSelector, if so, why is the IServiceEndpointSelector interface still internal, if I need a custom load balancing algorithm, I won't be able to start internal interface IServiceEndpointSelector {} Whether the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
cc @ReubenBond |
Beta Was this translation helpful? Give feedback.
-
Considering that the |
Beta Was this translation helpful? Give feedback.
We opted to remove the interfaces for now and wait until we found a stronger need to expose them. If there is a request from the community, we could make them public again and bring back some of the implementations (RoundRobin, PickFirst). If it's something you are interested in, please open an issue. The PowerOf2Choices implementation never worked as advertised because it relies on feedback from the endpoints and we don't have any defined way to get that feedback in HttpClient (backend servers need to report their load for us)