Is it possible to enable GRPC message compression in server? (Python)

36 views
Skip to first unread message

gpir...@gmail.com

unread,
May 24, 2018, 3:27:55 PM5/24/18
to grpc.io

Ihave a gRPC client (in Java) sending requests to a server (written in Python). I need to enable both request compression and response compression. There is good documentation on how to enable compression on the client side. I have managed to compress the request like so:

 response = blockingStub.withCompression("gzip").method(request)

However, I cannot find any documentation on how to compress the server response (also). It seems that there is almost no documentation (or examples) on how to use gRPC message compression in Python. How can I enable server-side compression? The call is a simple RPC call (no streaming).


Mahesh Kanote

unread,
May 24, 2018, 9:55:25 PM5/24/18
to gpir...@gmail.com, grpc.io

--
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 post to this group, send email to grp...@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/6d8bce58-90aa-43e4-ad9b-2955fa247460%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

George Sebastian Pirtoaca

unread,
May 25, 2018, 12:40:52 AM5/25/18
to Mahesh Kanote, grpc.io
Unfortunately that issue is only about Java. I need to have the same feature available in Python but I could not find an equivalent (or similar) API for Python.
Reply all
Reply to author
Forward
0 new messages