Hi Gaurav, For Java you might find useful the GAX channel pool: https://github.com/googleapis/gax-java https://github.com/googleapis/gax-java/blob/master/gax-grpc/src/main/java/com/google/api/gax/grpc/ChannelPool.java
-- Yuri On Tuesday, June 15, 2021 at 10:22:24 PM UTC-7 [email protected] wrote: > Hello! > I have a situation where the server sets H/2 max concurrent streams > intentionally low (e.g. 16 or 32) for good reason (that are somewhat > orthogonal to gRPC so I will skip the details) > The behavior I seem to be observing is that Java gRPC client stalls when > it hits that limit and waits for streams to free up before issuing more > requests. > Is this the expected behavior? > > I was hoping for a knob that allows me to instruct gRPC to dial additional > H/2 connections when it hits the limit. Turns out the .Net implementation > has something exactly like that > > https://docs.microsoft.com/en-us/aspnet/core/grpc/performance?view=aspnetcore-5.0#connection-concurrency > > Does Java gRPC stack have an equivalent? > > It would be pretty useful in seamlessly handling service to service > communication where server can support a higher gRCP req/sec but only if > the client were to dial more H/2 connections. > I say "seamlessly" because of course we can write code to somehow dial > more subchannels to server but we want the client to do this automatically > without programmer picking hardcoded connection count. > > Thanks in advance! > Gaurav > > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/f6ea5e89-f038-4a95-b83f-468edd82b771n%40googlegroups.com.
