开发者

what ruby client is the most stable for rabbitmq?

开发者 https://www.devze.com 2023-02-18 17:00 出处:网络
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 req

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号