Skip to content

Multiple instances of the same durable pull based consumer (same consumer name) #1223

Answered by jnmoyne
kamikazechaser asked this question in Q&A
Discussion options

You must be logged in to vote

There is nothing special to do to scale consumption of messages from a consumer because JS (unlike other streaming systems) is partition-less. Just start as many instances of your application (worker pods)as you need, and all of them can subscribe to the same durable consumer and the messages will be automatically distributed between them. You can add/remove subscribers (worked pods) at any time, there is literally nothing to do.
And this works regardless of the number of servers in the cluster.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aricart
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