mostynb / go-grpc-compression

go gRPC encoding wrappers for some useful compression algorithms that are not available in google.golang.org/grpc
Apache License 2.0
21 stars 10 forks source link

Thread-safe, multiple compression level support, proof of concept #24

Open jmacd opened 1 year ago

jmacd commented 1 year ago

Just a note concerning how this library could be extended to support thread-safe configuration of compression settings.

For our project we needed this specifically for Zstd, and I used the following approach.

https://github.com/open-telemetry/otel-arrow/pull/81

This allows us to configure up to 10 distinct encoder settings in a thread-safe way. I opened this issue to share the idea for consideration.

mostynb commented 1 year ago

Thanks for the pointer- I will take a look :)