> > 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 grpc-io+unsubscr...@googlegroups.com. To post to this group, send email to grpc-io@googlegroups.com. 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/CA%2B4M1oP%2BCSi%2Bo8QY%2BXMLp4Z_GQ4troerAizZvRLMRze%3Dys4kPw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: S/MIME Cryptographic Signature