[rabbitmq-discuss] Advice on where to reset connection and channel

Jonathan Halterman jhalterman at gmail.com
Mon Mar 31 05:56:27 BST 2014


Hi Phil,

Late response, but you might check out Lyra - A RabbitMQ client designed to
handle every failure scenario that could reasonably occur via flexible
recovery/retry policies:

https://github.com/jhalterman/lyra

Handled scenarios:

https://github.com/jhalterman/lyra/wiki/Failure-Scenarios

Cheers,
Jonathan


On Sat, Feb 15, 2014 at 9:09 PM, cw storm <cwstorm at gmail.com> wrote:

> I'm interested in knowing how everyone uses the connection listener
> "ShutDownListener" and the consumer callback "handleShutDownSignal".  Both
> of these will be executed in an event a connection was close or a restart
> of the broker server.  I don't think I would want to include the function
> to re-establish the connection/channel in both of the handlers.  So, where
> would I perform the re-connect logic.  Maybe I should just pick one.
>
> Also, another consumer callback name "handleCancel".  This will only be
> invoke when an unexpected cancellation by the broker.  That would also mean
> I would have to reconsume from the other node by creating another
> connection/channel.  I assume this does not get invoke during a restart of
> the broker or a force close connection.  That would only apply to the two
> that I mentioned, right?
>
> -Phil
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140330/923b7349/attachment.html>


More information about the rabbitmq-discuss mailing list