Skip to content

Jobs plugin (rabbitmq): is it possible to have one and only one consumer per queue? #1932

Answered by rustatian
shieldz80 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @shieldz80 👋
If you specify a pipeline with a queue, RR will allocate only one consumer. However, you should specify a prefetch of 1 to synchronously consume messages. So, only after the message was acknowledged, RR will consume the next one.
And yes, RR supports exclusive consumers: https://docs.roadrunner.dev/docs/queues-and-jobs/amqp

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@shieldz80
Comment options

@rustatian
Comment options

@rustatian
Comment options

@shieldz80
Comment options

@shieldz80
Comment options

Answer selected by shieldz80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
P-jobs Plugin: Jobs
2 participants