nats.py
nats.py copied to clipboard
Add compression field for stream config
Proposed change
in StreamConfig
a field called compression
may be added. Its type according to documentation would be
compression : Optional[Literal["s2"]] = None
Use case
We use compression in our streams and would like to move from defining our streams in infra as code to just code approach
Contribution
I might if the code is not too complex