In the interim, if you're not tied to Python specifically, you could use a 
different implementation of gRPC that fully supports compression like C++ 
<https://github.com/grpc/grpc/tree/master/src/cpp> or Java 
<https://github.com/grpc/grpc-java>. If you really are tied to Python, then 
you could do the compression yourself, using a module like gzip 
<https://docs.python.org/3/library/gzip.html#gzip.compress>.

On Wednesday, February 13, 2019 at 1:07:24 PM UTC-8, Asad Habib wrote:
>
> Okay, thanks for the update. I will follow this issue via github. For the 
> time being, what would you recommend to reduce gRPC payload sizes with 
> Python? From Python server to client, I changed the definition of my 
> variable from string to bytes but that didn't make any difference in 
> payload size. Since I'm sending huge chunks of data across the wire (GBs of 
> data), even a small difference matters. Your input would be greatly 
> appreciated. Thanks.
>
> On Wed, Feb 13, 2019 at 2:08 PM rbellevi via grpc.io <
> [email protected] <javascript:>> wrote:
>
>> Unfortunately, compression settings are not yet fully supported in 
>> Python gRPC. <https://github.com/grpc/grpc/issues/15741> However, I have 
>> work queued up for this quarter to address this gap. You can track progress 
>> on this through the linked github issue.
>>
>>
>> On Thursday, February 7, 2019 at 12:14:42 AM UTC-8, [email protected] 
>> wrote:
>>>
>>> Has anyone does this? I cannot find any documentation or code 
>>> demonstrating this. For my Python gRPC client, I use the following:
>>>
>>> channel = grpc.insecure_channel('localhost:50051', 
>>> options=[('grpc.default_compression_algorithm', 1), 
>>> ('grpc.default_compression_level', CompressionLevel.high)])
>>>
>>>
>>> How do I do the same for my Python gRPC server? Any help would be 
>>> greatly appreciated. Thanks.
>>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "grpc.io" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/grpc-io/gLOMKC3xSow/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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/7a396ae3-aebc-487e-b85e-e908f94070b5%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/grpc-io/7a396ae3-aebc-487e-b85e-e908f94070b5%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/92a9165e-ab04-421f-82f6-2ff7dcd8b73c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to