amqp_consume_message: order in which queues are consumed

51 views
Skip to first unread message

Beccy B

unread,
Jan 31, 2023, 3:12:35 AM1/31/23
to rabbitmq-c-users
Hi rabbitmq-c users,

I am new to Rabbitmq and have a question regarding the amqp_consume_message method. From the general RabbitMQ docs I understand that the queues themselfs are FIFO and if I have multiple consumers per queue they would be assigned messages in round-robin fashion.

However, I could not find official docs explaining this very simple scenario:

- 10 queues each with a single consumer
- all queues have a single topic binding

If each queue has messages inside, which one of the queues will amqp_consume_message consume from next? Will it check each queue and see which one of the messages at the front each queues came in first to keep the FIFO order over multiple queues?

I checked in the code an here the data from first_queued_frame seems to be read out. But I can not find out from which queue this is the first queued frame.

Would be very gratuful if anyone could help me with this :)

Best regards
Beccy




Reply all
Reply to author
Forward
0 new messages