Connection deduplication

36 views
Skip to first unread message

Ruslan Nigmatullin

unread,
Oct 26, 2018, 5:19:57 PM10/26/18
to grp...@googlegroups.com
Hi,

It looks like grpc-core performs a deduplication of TCP connections
for subchannels with the same channel arguments [1]. However it
doesn't look like it's a case for grpc-go implementation.
It sounds like a useful behavior in the context of grpclb, as it
allows reducing number of connections to the remote balancer (as
multiple channels can point to the same remote balancer server).

Is it just a missing functionality at grpc-go side or some fundamental
difference in implementations?

Thanks

1. https://github.com/grpc/grpc/blob/a0578f075ccd64a7041c02c0efcf3bb590aa019e/src/core/ext/filters/client_channel/subchannel_index.cc

Doug Fawley

unread,
Oct 31, 2018, 4:29:50 PM10/31/18
to grpc.io
I'd need to learn more about the C implementation of connection deduplication before deciding whether it makes sense for grpc-go.  E.g.s:  Is it optional or always enabled?  Does it scale connections when the maximum streams limit is reached?

Could you file a bug against grpc-go for this if you think it's worth investigating further?

Thanks,
Doug
Reply all
Reply to author
Forward
0 new messages