Example of cleanly auto-reconnect durable queue to RabbitMQ, especially in times of cluster membership changes.
Checkout my blog!
- Reuse connection: no reconnect (recreation of
Connection) unless the connected node (on AMQP side) fails
- Exactly one channel, and resilent to queue failure (queue down due to RabbitMQ cluster changes)
- Useful logging (with
lagerbecause it's bundled with
- Example of passing in options through