[rabbitmq-discuss] AMQP.BasicProperties
Michael Klishin
michael.s.klishin at gmail.com
Fri Oct 28 15:03:54 BST 2011
Le 28/ott/2011 à 17:54, Adam Rabung a écrit :
> Are there any pros/cons to using BasicProperties for storing your own message metadata vs. encoding it in the payload?
Properties set has headers exactly for storing metadata in it. However, some clients may decode headers slightly differently (some languages/clients do not distinguish between Int and Long, for example) or not support certain types: Pika does not seem to support floats; one of popular Ruby clients, bunny, does not support arrays nested in attribute tables and so on.
So unless some piece of information is obviously metadata, encoding it into payload is a safer bet in multi-platform/polyglot systems.
MK
http://github.com/michaelklishin
http://twitter.com/michaelklishin
More information about the rabbitmq-discuss
mailing list