LoadBalancer
and Backends
interface are SocketAddr
oriented, while ProxyHttp::upstream_peer()
is HttpPeer
oriented
#276
Labels
enhancement
New feature or request
What is the problem your feature solves, or the need it fulfills?
The examples of
LoadBalancer
are oriented aroundSocketAddr
s, e.g. addr+ports. This includes the constructor ofLoadBalancer
, as well as the interfaces ofBackends
.However, when using
LoadBalancer
as a part of aProxyHttp
implementation, the Service is expected to provide anHttpPeer
, which includes additional information, such as TLS+SNI information.Is the recommended usage of
LoadBalancer
to obtain the socketaddr from the selection process, then do a second mapping ofSocketAddr
toHttpPeer
s?Describe the solution you'd like
I'm guessing the intent here is to support both TCP and HTTP load balancing, though I'm unsure what the intended use was for this.
I'm going to start looking into this, but wanted to raise it in case I'm just looking at it incorrectly.
Additional context
CC memorysafety/river#39
The text was updated successfully, but these errors were encountered: