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

[IMPROVED] Add extra option to OrderedConsumerConfig #1737

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

mwain
Copy link
Contributor

@mwain mwain commented Nov 14, 2024

Id like to set these options for ordered consumers.

@coveralls
Copy link

coveralls commented Nov 18, 2024

Coverage Status

coverage: 84.961% (+0.008%) from 84.953%
when pulling 7718564 on mwain:feat/add-cfg-opts-to-ordered
into 48391f1 on nats-io:main.

@piotrpio
Copy link
Collaborator

Hello @mwain, thank you for the contribution! While I agree that metadata may be useful for ordered consumers, I'm not sure about MaxRequestMaxBytes - max bytes buffered client side can be set using options on Consume and Messages - what's your use case here?

@mwain
Copy link
Contributor Author

mwain commented Dec 18, 2024

Hi @piotrpio, thanks for the review. We used it to cap the bytes being buffered. TBH i didn't see the PullMaxBytes option 🙈

Would you like me to update this to remove MaxRequestMaxBytes?

@piotrpio
Copy link
Collaborator

@mwain That would be great, thanks!

Signed-off-by: Michael Wain <michael@sanity.io>
@mwain mwain force-pushed the feat/add-cfg-opts-to-ordered branch from ca18849 to 7718564 Compare December 18, 2024 20:33
@mwain mwain changed the title [IMPROVED] Add extra options to OrderedConsumerConfig [IMPROVED] Add extra option to OrderedConsumerConfig Dec 18, 2024
@mwain
Copy link
Contributor Author

mwain commented Dec 18, 2024

@piotrpio Updated

Copy link
Collaborator

@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, thank you for the contribution!

@piotrpio piotrpio merged commit 6977981 into nats-io:main Dec 19, 2024
4 checks passed
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.

3 participants