Skip to content

What's a subj parameter of a JetStream.PullSubscribe() method for? #1007

Answered by derekcollison
rkintzi asked this question in Q&A
Discussion options

You must be logged in to vote

If the call creates a pull consumer it will use the subject as a filter subject for the consumer. Consumers can filter messages from a parent stream.

If the consumer already exists it will select it based on the subject.

This behavior is being simplified in the next version of the JetStream API which is coming rsn.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rkintzi
Comment options

@derekcollison
Comment options

Answer selected by derekcollison
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants