Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what ruby client is the most stable for rabbitmq?

What ruby client should I use for rabbitmq?

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?

like image 740
Blankman Avatar asked Nov 14 '22 01:11

Blankman


1 Answers

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.

like image 51
Joshua Avatar answered Nov 24 '22 00:11

Joshua