Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compression option to kv #1143

Merged
merged 1 commit into from
Oct 29, 2023
Merged

Add compression option to kv #1143

merged 1 commit into from
Oct 29, 2023

Conversation

Jarema
Copy link
Member

@Jarema Jarema commented Oct 27, 2023

Signed-off-by: Tomasz Pietrek tomasz@nats.io

Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
@Jarema
Copy link
Member Author

Jarema commented Oct 27, 2023

relevant issue: nats-io/nats-architecture-and-design#253

Copy link
Contributor

@piotrpio piotrpio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@piotrpio piotrpio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Backtracking a bit - ADR specified compression for KV as a boolean flag, rather than allowing to pick up a specific compression algorithm - https://github.com/nats-io/nats-architecture-and-design/pull/252/files

We need to discuss and align this setting across all clients

@ripienaar
Copy link

For KV where the purpose is minimal API surface area and minimal choices - and maximal chance of having alternative backends a Boolean is best.

We should make the right choice for users and not surface extra options where those will just complicate matters.

That means today it’s s2 or nothing

@Jarema Jarema merged commit 09afb0e into main Oct 29, 2023
10 checks passed
@Jarema Jarema deleted the add-compression-to-kv branch October 29, 2023 20:56
@Jarema
Copy link
Member Author

Jarema commented Oct 29, 2023

I need to think about it for a while. But I think agree. Will follow up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants