gRPC AysncIO client connections limit

84 views
Skip to first unread message

pallav parikh

unread,
Oct 18, 2023, 12:57:15 PM10/18/23
to grpc.io
Hi,

I have a requirement for the use to stream the data from clients to server and all the stream are long-lived session currently we are using crossbar as a router and WebSockets for streaming the data, but now we are looking to change the architecture. I am very much amazed by the efficiency gRPC brings but in the use case we will be having 1000 clients simultaneously streaming the data to server concurrently and when I tried out the scenario gRPC does not accept the new connection request after certain concurrent streams are going (150-200 approx). So is this a gRPC limitation and if not how can I overcome this issue??

Thank you.

Yuri Golobokov

unread,
Oct 19, 2023, 6:09:04 PM10/19/23
to pallav parikh, grpc.io
Hi,

Are you referring to the concurrent stream limit per HTTP2 session (i.e., MAX_CONCURRENT_STREAMS http2 setting) or some number of connections (http2 sessions) limit you observe?

--
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 grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/0af5a0e8-92b2-4c94-af76-93c924585e49n%40googlegroups.com.

Edvard Fagerholm

unread,
Oct 20, 2023, 12:45:46 PM10/20/23
to grpc.io
When testing how many TCP sockets are you creating? Have you checked? If you're using a single shared client stub on a load tester app, then you're probably just creating many HTTP/2 streams over a single HTTP/2 connection. If you're having a load balancer in between like AWS ALB, then it also enforces a maximum 128 concurrent HTTP/2 streams per HTTP/2 connection.

Best,
Edvard
Reply all
Reply to author
Forward
0 new messages