从 RabbitMQ 队列中检索消息 [英] Retrieve messages from RabbitMQ queue(s)

查看:84
本文介绍了从 RabbitMQ 队列中检索消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在我的 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 :)

推荐答案

James,你能在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/

干杯

亚历克西斯RabbitMQ

alexis RabbitMQ

这篇关于从 RabbitMQ 队列中检索消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆