I there any RabbitMQ API to track the position of messages.

282 views
Skip to first unread message

The doc

unread,
Oct 11, 2023, 1:07:06 AM10/11/23
to rabbitmq-users
I've generated a random unique ID and included it in the headers, and placed it in the queue as a message ID. I tried to monitor the position of these messages by utilizing the basic_get method. I'm wondering if there are any built-in APIs available to retrieve the message's position within my RabbitMQ queue. Thanks in advance.

Michal Kuratczyk

unread,
Oct 11, 2023, 2:37:02 AM10/11/23
to rabbitm...@googlegroups.com
No. What would you like to know the position in the queue?

Best,

On Wed, Oct 11, 2023 at 7:07 AM The doc <acoc...@gmail.com> wrote:
I've generated a random unique ID and included it in the headers, and placed it in the queue as a message ID. I tried to monitor the position of these messages by utilizing the basic_get method. I'm wondering if there are any built-in APIs available to retrieve the message's position within my RabbitMQ queue. Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/35fbbb1e-3c8d-4b27-9cbf-af9d63104904n%40googlegroups.com.


--
Michał
RabbitMQ team

The doc

unread,
Oct 26, 2023, 7:21:19 AM10/26/23
to rabbitmq-users
I'm trying to retrieve the message position, Is there any way to get the position of message in the queue if the position changes from 3, 2, and so on...
Trying to implement like a websocket between python and RabbitMQ (messages in a) queue.

terren...@gmail.com

unread,
Oct 26, 2023, 11:18:24 AM10/26/23
to rabbitm...@googlegroups.com
The messages are placed on queue in order of arrival. Why are you trying to monitor their position?

On Oct 26, 2023, at 1:21 PM, The doc <acoc...@gmail.com> wrote:

I'm trying to retrieve the message position, Is there any way to get the position of message in the queue if the position changes from 3, 2, and so on...

The doc

unread,
Oct 27, 2023, 1:21:31 AM10/27/23
to rabbitmq-users
I'm just trying to get the message position and manipulate/show it in UI using flask framework like {message : message_position}. Here the message is actual message/payload I sent in queue and the message_position is the position of that particular message.

The goal is to create a output that links each message sent to the queue with its respective position, enabling the presentation of this information in the UI.

|    Message      | Position |
|------------------------|---------------|
|    message1    | 1             |
|    message2    | 2             |
|    message3    | 3             |

Thanks.

Michal Kuratczyk

unread,
Oct 27, 2023, 3:45:19 AM10/27/23
to rabbitm...@googlegroups.com
It's not possible. In most systems the position of a given message will change many times per second and tracking that position would be unnecessary overhead.




--
Michał
RabbitMQ team
Reply all
Reply to author
Forward
0 new messages