nats.go icon indicating copy to clipboard operation
nats.go copied to clipboard

PubOpt adding compression configuration

Open Doslin opened this issue 1 year ago • 2 comments

Feature Request

Publish publishes a message to JetStream. adding compression configuration

Use Case:

Proposed Change:

Who Benefits From The Change(s)?

Bandwidth and IOPS of the NATS-server

Alternative Approaches

Doslin avatar Jul 20 '22 02:07 Doslin

This is not something I've looked a ton at fixing yet but the client already seems to bring a fair amount of baggage with it for deployment to small spaces. Have seen some chatter about eg breaking the encoded connections out to their own package over the last ~year I wonder if compression is something that kinda fits there.

AlexCuse avatar Jul 20 '22 03:07 AlexCuse

Our challenge here would be what compression method? How do we interact with the other 40+ client libs?

I think compressing outside of the NATS go lib is reasonable here and can be adopted to many situations.

All of that being said we have been looking into auto-compression a bit for leafnode connections and possibly gateways and routes.

derekcollison avatar Jul 20 '22 03:07 derekcollison