[rabbitmq-discuss] Error code 541

Ben Hood 0x6e6562 at gmail.com
Thu Sep 11 14:07:30 BST 2008


On Thu, Sep 11, 2008 at 1:57 PM, Eran Sandler <eran.sandler at gmail.com> wrote:
> I don't use an exchange. I saw that its possible to use this without an
> exchange (but perhaps I'm screwing myself with regards to clustering, I
> haven't taken a closer look as to how to work well with clustering).

No, that's fine. What you are doing is using what is known as the
default exchange. This means that message is routed to a queue with
the same name as the routing key.

> I think BasicConsume should work just fine. I saw that it can handle the Ack
> automatically. The reason I thought using BasicGet was to keep my options
> open as to refuse a message for a point in time where my consuming code will
> run on a couple of machines that might get upgraded sequentially. This might
> lead to scenario in which I have added a new message type I want to handle
> and I don't have the new code on all consumers.

You can ack manually if you want to. Set the no_ack flag to true and
then make a application specific decision of whether to ack or not in
the onDeliver callback.

> Regarding the sample, I will write something quick based on my original code
> and send it so it will make your life (and mine) a lot nicer (and quicker)

Cool, hopefully one of us will get some time to look at it.


More information about the rabbitmq-discuss mailing list