How can I get all messages headers in a queue? #13062
-
Is your feature request related to a problem? Please describe.Hello, Describe the solution you'd likeI'd like to have a new API route to get the list of headers of the messages in a specific queue, thanks! Describe alternatives you've consideredNo response Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Please elaborate on your request. The way it sounds right now suggest that you are trying to use a queue for something that you shouldn't use a queue for. Why do you need it? Are you building a management console and you want a "browse a queue" functionality or what? Quorum queues support messaging peek. Perhaps that's good enough?
|
Beta Was this translation helpful? Give feedback.
RabbitMQ does not prevent you from publishing to a queue that has undelivered messages. It does not verify or force message uniqueness. Publishers can set an ID in message properties but it is only there for applications to use however they see fit.
If you need a deduplication, use a stream. If you need only one messages to be processed at a time from a given publisher, that's a publisher and consumer coordination problem, RabbitMQ does not "take back" deliveries from consumers.
Consumers themselves should cancel any tasks they have in progress when a newer message from the same publisher arrives.