gRPC C++ is a wrapper over gRPC Core. All available compression algorithm 
can be found 
at 
https://github.com/grpc/grpc/blob/master/include/grpc/impl/codegen/compression_types.h.

However, currently there is no way to customize compression algorithm. If 
this is critical to you, feel free to file a feature request on GitHub: 
https://github.com/grpc/grpc/issues

On Friday, January 8, 2021 at 4:41:46 AM UTC-8 [email protected] wrote:

> golang can register a custom compressor like this
>
> ```
> *grpc.UseCompressor(gzip.Name)*
> ```
>
> In C++ there is just support of several compression algorithms:
>
> ```
> *ChannelArguments args; // Set the default compression algorithm for the 
> channel. *
> *// gzip deflate ...*
> *args.SetCompressionAlgorithm(GRPC_COMPRESS_GZIP); GreeterClient 
> greeter(grpc::CreateCustomChannel( "localhost:50051", 
> grpc::InsecureChannelCredentials(), args));*
> ```
>
> How to add a customize *"compressor"* like golang?
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/759e7187-8106-41d1-a57c-9f298461548dn%40googlegroups.com.

Reply via email to