Lines Matching full:compression
1 ## Compression with gRPC Python
3 gRPC offers lossless compression options in order to decrease the number of bits
4 transferred over the wire. Three levels of compression are available:
6 - `grpc.Compression.NoCompression` - No compression is applied to the payload. (default)
7 - `grpc.Compression.Deflate` - The "Deflate" algorithm is applied to the payload.
8 - `grpc.Compression.Gzip` - The Gzip algorithm is applied to the payload.
10 The default option on both clients and servers is `grpc.Compression.NoCompression`.
12 See [the gRPC Compression Spec](https://github.com/grpc/grpc/blob/master/doc/compression.md)
15 ### Client Side Compression
17 Compression may be set at two levels on the client side.
22 with grpc.insecure_channel('foo.bar:1234', compression=grpc.Compression.Gzip) as channel:
28 Setting the compression method at the call level will override any settings on
34 compression=grpc.Compression.Deflate)
38 ### Server Side Compression
40 Additionally, compression may be set at two levels on the server side.
46 compression=grpc.Compression.Gzip)
53 context.set_compression(grpc.Compression.NoCompression)
57 Setting the compression method for an individual RPC will override any setting