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

Watch on multiple kv patterns in one call #1708

Closed
telemac opened this issue Aug 29, 2024 · 3 comments
Closed

Watch on multiple kv patterns in one call #1708

telemac opened this issue Aug 29, 2024 · 3 comments
Labels
proposal Enhancement idea or proposal

Comments

@telemac
Copy link

telemac commented Aug 29, 2024

Proposed change

It is possible to subscribe to multiple subjects on jetstream streams by passing an array or strings. kv.Watch takes only one string. It would be nice to be able to subscribe to multiple keys/patterns in one call.

Use case

Allow to watch a set of keys without having to create multiple coroutines.

Contribution

No response

@telemac telemac added the proposal Enhancement idea or proposal label Aug 29, 2024
@nickchomey
Copy link

You might be referring to this work that is already underway

nats-io/nats-architecture-and-design#277

@telemac
Copy link
Author

telemac commented Aug 30, 2024

Absolutely.
Thx

@piotrpio
Copy link
Collaborator

piotrpio commented Sep 2, 2024

Thanks for reporting the issue @telemac. As mentioned my @nickchomey, this feature is incoming and will be a part of the next client release. I'll be closing this issue, please track nats-io/nats-architecture-and-design#277 for updates.

@piotrpio piotrpio closed this as completed Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Enhancement idea or proposal
Projects
None yet
Development

No branches or pull requests

3 participants