Hi,
I have a service using grpc to stream data to client-side.
For the original implementation, the average throughput could be ~110MBps with a 1Gbps NIC, so I think bandwidth itself is a bottleneck. The usual way is to enable compression/decompression.
I found grpc supports compression natively. The only line of code I added at server side is
with no change at client-side. But the throughput drops stably.
With dstat -n, the throughput looks like
which looks like the average throughput is 7MBps.
And with response.ByteSize(), I calculated the throughput is ~11MBps, still way below the one before compression.
The observation doesn't change as the compression level, whether it's low, medium or high.
I want to know, if I'm using the compression in grpc wrongly?
Thanks!
Best,
Hao
--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/52e90489-0347-4614-824c-ceeac41c8086n%40googlegroups.com.