Subscribing to multiple queues, is it possible to fetch 1 message at a time? #2291
Unanswered
jonathan-fileread
asked this question in
Q&A
Replies: 2 comments 10 replies
-
@jonathan-fileread you should create a separated channel for each subscriber and set qos for it to 1 |
Beta Was this translation helpful? Give feedback.
6 replies
-
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All! I'm currently POCing faststream with rabbitMQ. I'm trying to subscribe to multiple queues within my app worker like this
for each queue, i'm hooking up a subscriber handler, however each subscriber, even with a prefetch_count of 1, will poll 1 message from each queue to process asynchronously. I.e. if I have 3 queues subscribed in that app, it will poll 3 messages to process at once. I'd like to retain subscribing multiple queues in my app - however I'd like to unack/in-transit/process only 1 message at a time in 1 queue.
Is there a best practice way to do this? Here are some solutions I've thought of, but don't go all the way.
Beta Was this translation helpful? Give feedback.
All reactions