[英]How to connect Tornado and Pika with RabbitMQ via a shared event loop?
I'm using the TornadoConnection adapter in Pika, however found the documentation to be light. 我在Pika中使用TornadoConnection适配器,但发现文档很轻。 I'd like:
我想要:
The docs show how to use the Tornado IOLoop but I haven't seen such examples. 文档展示了如何使用Tornado IOLoop,但我还没有看到这样的例子。 Much appreciated.
非常感激。
I suggest reading this blog post, it's really good: 我建议阅读这篇博文,这真的很棒:
http://reminiscential.wordpress.com/2012/04/07/realtime-notification-delivery-using-rabbitmq-tornado-and-websocket/ http://reminiscential.wordpress.com/2012/04/07/realtime-notification-delivery-using-rabbitmq-tornado-and-websocket/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.