[rabbitmq-discuss] active-active implementation in php

Robin Harvey harvey.robin at gmail.com
Tue Jan 3 20:03:24 GMT 2012


Alvaro - does php-amqplib support incoming consumer cancels?


Out of interest, how does the client know where to re-connect to when a
queue fails (i.e. which slave got promoted)?  I've seen the following
(here: http://www.rabbitmq.com/ha.html):

> Clients that were consuming from the mirrored-queue and support our Consumer
Cancellation Notifications<http://www.rabbitmq.com/extensions.html#consumer-cancel-notify>extension
will receive a notification that their subscription to the
mirrored-queue has been abruptly cancelled. At this point they should
re-consume from the queue, which will pick up the new master

...but this doesn't give much detail.  Are the reconnection parameters in
the consumer.cancel method?


Thanks,
--Robin

On 3 January 2012 15:07, Alvaro Videla <videlalvaro at gmail.com> wrote:

> Hi,
>
> Yes… it should support the arguments parameter.
>
> BTW… I recommend that you use this version of the library:
> https://github.com/videlalvaro/php-amqplib for the reasons stated here:
> http://videlalvaro.github.com/2011/11/php-amqplib-future.html
>
> Regards,
>
> Alvaro
>
>
> On Tue, Jan 3, 2012 at 4:00 PM, Emile Joubert <emile at rabbitmq.com> wrote:
>
>> Hi Dhaneesh,
>>
>> On 30/12/11 04:25, Dhaneesh Radhakrishnan wrote:
>> > Hi
>> >
>> >  Is it possible to  implement Mirrored Queue ( active-active )using
>> > php-ampliqb  for
>> > HA
>>
>> Judging by the queue_declare() function, php-amqplib does support
>> arguments, so it is possible to make use of mirrored queues using this
>> library.
>>
>> See http://www.rabbitmq.com/ha.html for details on how to set the
>> "x-ha-policy" argument.
>>
>>
>>
>> -Emile
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> 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/20120103/66bd82c0/attachment.htm>


More information about the rabbitmq-discuss mailing list