[rabbitmq-discuss] Help required: How to keep the length of a message in bytes

Emile Joubert emile at rabbitmq.com
Fri Mar 23 11:28:20 GMT 2012


Hi Saima,

On 23/03/12 11:13, Saima Asif wrote:
> I am working on Rabbit MQ messages, I need you help about how to keep
> the length of a message in bytes. Before this I was just considering the
> routing key and taking the length of this string in bytes. Now I want to
> know what else is important in the message to consider that affects the
> message lenght. Any help would be highly appreciated.

I'm not sure I understand your question. What are you trying to do?

The length of the message body (byte array) will normally exceed the
length of the routing key. Message headers and internal accounting
fields also contribute to the overall memory and/or disk footprint of a
message.

If you are performing a scoping exercise to estimate the amount of RAM
required then use the expected message body size instead of the routing key.


-Emile



More information about the rabbitmq-discuss mailing list