what ruby client is the most stable for rabbitmq?
What ruby client should I use for rabbitmq?
开发者_JAVA百科Would I just connect to the rabbitmq server once during the web application startup i.e. in a initializer or would this be done on a per request basis?
Does doing it once during startup have any concurrency issues?
I have had good success in production with the Carrot gem. https://github.com/famoseagle/carrot Our code connects once per request.
There are a lot of issues that arise when you maintain a connection globally for the application. If you can avoid it, I would recommend against.
精彩评论