[rabbitmq-discuss] Best Practices: Exposing messages as "Envelope" (PHP PECL extension)
Pieter de Zwart
pdezwart at rubiconproject.com
Mon Nov 28 21:30:26 GMT 2011
I want to run this up the flagpole and see who shoots it down. I am in the final stages of reworking the PHP AMQP extension for the v1.0 release. I was poking through the Java client, trying to steal as many of the good ideas in there as possible and I found the Envelope object, which is returned to a consumer on callback. The envelope is nice, but its lacking some basic things: properties and headers.
I am suggesting creating a new object for the PHP extension: AMQPEnvelope, which has the following signature:
// General getters
... list of all remaining properties except "headers" ...
// Returns all headers as an array of key => value pairs
// Get a specific header identified by $headerName, and return (bool)false if it does not exist.
I know the vast majority of people here are not PHP users, but I would love to hear about this in general as a broker client if this makes sense and sounds usable.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss