[rabbitmq-discuss] Graceful shutdown of blocking consumers in PHP?

Alvaro Videla videlalvaro at gmail.com
Fri May 24 14:40:23 BST 2013


While I'm biased by being the maintainer of php-amqplib, one thing I like
from that library is the ability to have multiple consumers on the same PHP
script.


On Fri, May 24, 2013 at 3:31 PM, Colleen Mirabello <
colleen at surfmerchants.com> wrote:

> Alvaro,
>
> Using that library, I don't believe there's a way to get the same script
> to consume from multiple queues using consume(). Once you call consume(),
> the script blocks waiting for messages from that queue.
>
> Thanks.
>
>     - Colleen
>
>
>
> On 5/23/2013 5:41 PM, Alvaro Videla wrote:
>
>> Hi,
>>
>> Using that library, can you consume from more than one queue? If yes,
>> then you could send control messages to the script and make it stop.
>>
>> With php-amqplib since the while loop is part of user land code, you can
>> control all the consuming parts on your own so this wouldn't be a problem.
>>
>> Regards,
>>
>> Alvaro
>>
>>  ______________________________**_________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.**rabbitmq.com<rabbitmq-discuss at lists.rabbitmq.com>
> https://lists.rabbitmq.com/**cgi-bin/mailman/listinfo/**rabbitmq-discuss<https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130524/15a4910a/attachment.htm>


More information about the rabbitmq-discuss mailing list