Retrieve messages from RabbitMQ queue(s)(从 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 队列中检索消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:从 RabbitMQ 队列中检索消息


- Mod使用GET变量将子域重写为PHP 2021-01-01
- 如何定位 php.ini 文件 (xampp) 2022-01-01
- 没有作曲家的 PSR4 自动加载 2022-01-01
- 带有通配符的 Laravel 验证器 2021-01-01
- Laravel 仓库 2022-01-01
- SoapClient 设置自定义 HTTP Header 2021-01-01
- 从 PHP 中的输入表单获取日期 2022-01-01
- 正确分离 PHP 中的逻辑/样式 2021-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- PHP Count 布尔数组中真值的数量 2021-01-01