We are proxying the requests with 2mb via a proxy and seeing that proxy is seeing partial request so interested in understanding the behaviour bit more. Can you explain more on “fully buffered on unbuffered depending on what user is truly asking”? Are you saying there a way to control this behaviour while making the request? If yes, can you point me to that?
Thanks, Rama On Thu, 15 Aug 2019 at 11:29 AM, Eric Anderson <ej...@google.com> wrote: > Can you explain why you are interested or what you are doing? From the > perspective of users, unary gRPC requests are simultaneously unbuffered and > fully buffered, depending on what the user is truly asking. > > NettyWritableBufferAllocator isn't related to network buffers. It produces > buffers for serializing messages, however serialization is done > all-at-once. The only thing the 1M value does > in NettyWritableBufferAllocator is to limit the maximum block size in > memory, which relates to allocation performance and memory fragmentation. > > On Tue, Aug 13, 2019 at 6:27 PM Rama Rao <ramaraochav...@gmail.com> wrote: > >> For unary gRPC requests, what is the default netty buffer size? Is it >> pushed in buffers of 1M as mentioned here >> >> https://github.com/grpc/grpc-java/blob/master/netty/src/main/java/io/grpc/netty/NettyWritableBufferAllocator.java. >> Is that correct understanding? >> >> Thanks, >> Rama >> >> -- >> 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+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/grpc-io/CAFfmCFGKUhoy%3D0HbcxsfhWa430RZgTxFN8nq0f2QDxXKxGh4ng%40mail.gmail.com >> <https://groups.google.com/d/msgid/grpc-io/CAFfmCFGKUhoy%3D0HbcxsfhWa430RZgTxFN8nq0f2QDxXKxGh4ng%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CAFfmCFFjJhRP4nG_p_3c5XxezZ%3DADX7%2BcH9F0Z8h8HLjgr-wxQ%40mail.gmail.com.