[rabbitmq-discuss] rabbitmq consumer - Writing code that survive failures
stammailbox at gmail.com
Sun Mar 23 12:05:55 GMT 2014
I want to design a rabbit client framework to my project using Rabbitmq
My goals it to set default behaviour for other team members using Rabbit.
Rabbit In Action eBook (chapter 6 "Writing code that survive failures")
recommends the following
1. wrap all code in try catch
2. wrap all in while true
something like this
conn_broker = pika.BlockingConnection(conn_params)
channel = conn_broker.channel()
except Exception, e:
Now, in parallel I understand another goal should be to hold one connection
to the server and multiple channels per thread and client.
When exception occurs, will I need to check if connection is still open and
What if other consumer who uses it is alive and receiving? wouldn't it kill
Is it recomendded to open multiple connections?
Is there somewhere another design for this situation?
rabbitmq-discuss mailing list
rabbitmq-discuss at lists.rabbitmq.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss