[rabbitmq-discuss] is there any way to communicate back from the subscriber to producer in the rabbit mq when exange_type=fanout..

Tim Watson tim at rabbitmq.com
Thu Sep 12 12:57:56 BST 2013


On 12 Sep 2013, at 12:47, rajjs wrote:
> is there any way to communicate or the send the response message  back from the subscriber to producer in the rabbit mq when exange_type=fanout..

As per http://www.rabbitmq.com/tutorials/tutorial-six-python.html:

"The AMQP protocol predefines a set of 14 properties that go with a message. Most of the properties are rarely used, with the exception of the following:

delivery_mode: Marks a message as persistent (with a value of 2) or transient (any other value). You may remember this property from the second tutorial.
content_type: Used to describe the mime-type of the encoding. For example for the often used JSON encoding it is a good practice to set this property to: application/json.
reply_to: Commonly used to name a callback queue."

So you can specify the name of a reply queue in the basic.properties attached to a message, and use that to send a reply if necessary.

Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130912/3e7dce87/attachment.htm>


More information about the rabbitmq-discuss mailing list