-
Notifications
You must be signed in to change notification settings - Fork 160
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
How to specify deliver_group? #444
Comments
They can, but the consumer must be created with a queue group. If using the JSM functionality, the consumer config exposes
|
@aricart , what do you 'mean consumer must not exist'?. I have a similar setup to the one in the question above and getting the same error with natsjs version 2.6.1.
|
the durable should not exist - it cannot be changed from non queue to queue, you can create it with a queue group, and the other clients can reuse (it will be found) and they will all be part of that queue group. |
@Nahasean94 I worry when I see names for durables that have complexity as above that derives from some of the settings. I would instead use some simple name as in Better yet don't do queue groups and instead create a pull consumer and have multiple processes pulling from the same consumer. Pull consumers automatically horizontally scale. |
@aricart Do you have an example of your second comment? I am new to Nats and I want to adopt it in my startup, but nats concepts are a little cherry picked in my head. However, I am more interested in this concept "Better yet don't do queue groups and instead create a pull consumer and have multiple processes pulling from the same consumer. Pull consumers automatically horizontally scale."-- My end goal is- have a config that I can scale up/down pods for my notification deployment, without sending multiple emails to my clients because the horizontally scaled pods are all processing the same message. Does this make sense? |
I got this error with following codes:
(node:64650) UnhandledPromiseRejectionWarning: Error: durable requires no queue group
So durable cannot have queue group?
The text was updated successfully, but these errors were encountered: