Thanks Eric, I'll try what you have suggested.

On Thursday, March 7, 2019 at 3:32:01 PM UTC-8, Eric Anderson wrote:
>
> 1. On the wire, it'll be compressed to 5MB payload and on the serve side 
>> when I open up the gRpc request, Payload will be of 70MB size ?
>>
>
> Yes. 5 MB on-the-wire. The gRPC server will decompress the payload 
> automatically for the server.
>
> 2. On the Server side, I do not have to explicitly mention that Server is 
>> going to handle Compressed and/or Uncompressed messages. But gRpc protocol 
>> will take care of Compressed and   
>>     Uncompressed format, by keeping server transparent of any of these 
>> formats. It'll only complain if it's not able to handle certain Compression 
>> format which Sever can NOT handle. Is this 
>>     assumption correct ?
>>
>
> Yes.
>
> I'll note that the server's *response* will be independently compressed 
> (or not). Whether a client sends a compressed request does not impact 
> whether the response is compressed.
>
> 3. Apart from gzip, what other compression formats are supported eg. 
>> Snappy ?
>>
>
> It's basically just gzip today.
>
> 4. Is there an easy way to hook up Monitoring System like Prometheus on 
>> Individual Channel basis so that I can test or monitor above compression 
>> functionality by checking Throughput numbers on 
>>     the channel ?
>>
>
> It sounds like you are using Java. The tracing system in Java gets to see 
> the wire vs uncompressed sizes for the messages. I can't say whether 
> Prometheus has plugged into this functionality. But see 
> ClientStreamTracer/ServerStreamTracer. If you want to do a quick-and-dirty 
> test, decide whether you want to test on the client or server, implement a 
> tracer (I'd just have it call System.out.println), and then enable it via 
> ClientInterceptor+CallOptions.withStreamTracerFactory() 
> or ServerBuilder.addStreamTracerFactory().
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/f5b617c7-bd58-43be-973a-831447cdbb12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to