Closed RohinBhargava closed 2 years ago
Hi! Thanks for the question! :)
We don't specifically set any size limit on the grpc-web client. Neither are we aware of any limit on the Envoy side.
The gRPC servers however, set their received request size limit to 4MB by default (e.g. the node server).
They should be configurable using grpc.max_receive_message_length
, e.g. as mentioned here:
https://www.npmjs.com/package/@grpc/grpc-js
and here: https://grpc.github.io/grpc/core/group__grpc__arg__keys.html#ga813f94f9ac3174571dd712c96cdbbdc1
On the node server, no max response size limit is set (I tried increasing the request size to 20MB in our interop test, which will still pass with an increased timeout).
Hope this answers your question. 😃
Thanks! Appreciate the response.
I wrote it like this
const server = new Server( { 'grpc.max_receive_message_length': 1024 * 1024 * 100, 'grpc.max_send_message_length': 1024 * 1024 * 100, } );
Grpc can attach up to 100MB to a single message.
Can someone explain the max message size of a single request. It appears to be around 4 MB as per grpc specification. Can this limit be increased? Is there a configuration in either the grpc-web client that can be set or on the proxy (I am using envoy)? Thanks in advance.