Re: [grpc-io] Sending a single huge message in one unary call vs sending chunks of messages with streaming

2020-05-21 Thread Josh Humphries
On Thu, May 21, 2020 at 11:06 PM wrote: > Thx Josh for the reply. > > let me clarify > > 1. I'm sending 100 MB+ string as bytes type with protobuf, so what the > server side is doing in the streaming case is, preallocates a size of 100 > MB+ (size info provided from the first streaming message)

Re: [grpc-io] Sending a single huge message in one unary call vs sending chunks of messages with streaming

2020-05-21 Thread kevinyaoxm
Thx Josh for the reply. let me clarify 1. I'm sending 100 MB+ string as bytes type with protobuf, so what the server side is doing in the streaming case is, preallocates a size of 100 MB+ (size info provided from the first streaming message) and keep appending the broken up bytes sent

Re: [grpc-io] Sending a single huge message in one unary call vs sending chunks of messages with streaming

2020-05-21 Thread kevinyaoxm
Thx John for the reply. let me clarify 1. I'm sending 100 MB+ string as bytes type with protobuf, so what the server side is doing in the streaming case is, preallocates a size of 100 MB+ (size info provided from the first streaming message) and keep appending the broken up bytes sent

Re: [grpc-io] Sending a single huge message in one unary call vs sending chunks of messages with streaming

2020-05-21 Thread Josh Humphries
Is the server doing anything? One reason why streaming typically would outperform unary is because you can begin processing as soon as you receive the first chunk. Whereas with a unary RPC, your handler cannot be called until the entire request has been received and unmarshalled. If this is a

[grpc-io] Sending a single huge message in one unary call vs sending chunks of messages with streaming

2020-05-21 Thread kevinyaoxm
Hey All, I have been testing and benchmarking my application with gRPC, I'm using gRPC C++. I have noticed a performance difference with following cases: 1. sending large size payload (100 MB+) with a single unary rpc 2. breaking the payload into pieces of 1 MB and sending them as messages

[grpc-io] Re: gRPC C++ Client sends unencrypted data in spite of SslCredentials

2020-05-21 Thread 'Zhen Lian' via grpc.io
Can you please share the example you created please? From the log itself, it is very hard to tell where the problem is. We could find more clues if you can provide how you setup gRPC. Thanks! On Thursday, May 7, 2020 at 3:13:15 PM UTC-7 m...@stackrox.com wrote: > Hi, > > I'm using the gRPC C++

[grpc-io] Re: how to send nonroot traffic to grpc server

2020-05-21 Thread Pawan Kumar
On Thursday, May 21, 2020 at 3:12:33 PM UTC+5:30, Pawan Kumar wrote: > > > Hi guys, > I am a newbie on gRPC. I wanna setup nonroot path-based routing. can > someone help me on this if missing? > I have created one gRPC client and server and its working, I have also > implemented envoy to send

[grpc-io] how to send nonroot traffic to grpc server

2020-05-21 Thread Pawan Kumar
Hi guys, I am a newbie on gRPC. I wanna setup nonroot path-based routing. can someone help me on this if missing? I have created one gRPC client and server and its working, I have also implemented envoy to send traffic to the server and its working fine on my local. Code I have added here,