Skip to content

How can I get all messages headers in a queue? #13062

Discussion options

You must be logged in to vote

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.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@mkuratczyk
Comment options

@michaelklishin
Comment options

@TheUnableDeveloper
Comment options

@michaelklishin
Comment options

Answer selected by TheUnableDeveloper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
Converted from issue

This discussion was converted from issue #13062 on January 13, 2025 13:08.