从RabbitMQ队列中检索消息 [英] Retrieve messages from RabbitMQ queue(s)
问题描述
我希望在我的PHP应用程序中实现RabbitMQ,并且正在使用php-amqp扩展.我唯一的问题是,如何在PHP中轻松查询以返回队列的内容?
I'm looking to implement RabbitMQ into my PHP application, and am using the php-amqp extension. My only question is this, how do I easily query to return the contents of the queue in PHP?
php-amqp似乎无法使我做到这一点.如果我做错了,请在这里帮助我:)
php-amqp seems to not enable me to do this. If I am going wrong, please help me out here :)
推荐答案
詹姆斯,你能在rabbitmq-discuss上问这个问题吗?您的问题涉及查询"队列以获取消息的含义.在RabbitMQ中,您将使用队列中的消息,并使用队列绑定执行过滤.看看这个介绍- http://blogs.digitar. com/jjww/2009/01/rabbits-and-warrens/
James, could you please ask this question on rabbitmq-discuss? Your question touches on what it means to 'query' a queue in order to get messages. In RabbitMQ you consume messages from queues, and perform filtering using queue bindings. Have a look at this intro - http://blogs.digitar.com/jjww/2009/01/rabbits-and-warrens/
欢呼
alexis RabbitMQ
alexis RabbitMQ
这篇关于从RabbitMQ队列中检索消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!