[rabbitmq-discuss] Dynamically binding to a topic exchange without losing messages?

Ben Hood 0x6e6562 at gmail.com
Fri Oct 2 16:13:24 BST 2009


Robby,

On Fri, Oct 2, 2009 at 3:06 PM, Robert Raschke <rtrlists at googlemail.com> wrote:
> What I am trying to get my head around is, how can I quarantee that any
> messages arriving for the new ID don't get lost while my starter process is
> setting stuff up? For example, a message with key START.27 arrives, the
> starter now sets up the new queue and binding against '*.27', but before
> that is complete, a message with key X.27 got published (and potentially
> lost).

Don't know if this helps but if you're concerned about about messages
being binned, then you can set the mandatory flag when publishing the
message which will have the effect that if the message could not get
routed to at least one queue, it will be returned to the sender.

Ben




More information about the rabbitmq-discuss mailing list