[rabbitmq-discuss] Persistant/Semaphore

Michael Klishin mklishin at gopivotal.com
Mon Jun 9 05:04:20 BST 2014


On 9 June 2014 at 08:00:06, Larry Lewis (larry.gooroo at gmail.com) wrote:
> > OK grabbed the lvc plugin as suggested but the sample Python  
> code doesn't seem to map to the PHP AMQP library

What do you find not mapping?

The only "novel" thing in that example [1]
is the custom exchange type. exchange_declare signature is pretty much identical
in php-amqplib (except for keyword args), replace "fanout" with "x-lvc":

https://github.com/videlalvaro/php-amqplib/blob/master/demo/amqp_publisher_fanout.php#L20

and you're good to go.

1. https://github.com/simonmacmullen/rabbitmq-lvc-plugin#use 
--  
MK  

Software Engineer, Pivotal/RabbitMQ


More information about the rabbitmq-discuss mailing list