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

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

You must be logged in to vote
2 replies
@rkintzi

@derekcollison

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