[rabbitmq-discuss] Help required: How to keep the length of a message in bytes
Saima Asif
abdullahsaima at yahoo.com
Fri Mar 23 11:31:43 GMT 2012
Dear Emile,
Actually I am understanding by implemeting a kind of working of this RabbitMQ message. I actually want to simulate some of the basic ideas of this. What important features of the message I should consider. I want to keep the length of the message to estimate how much time an exchange would take to process it in my simulation. I dont know whether I am describing it properly or not.
Thanks for help.
Saima
________________________________
From: Emile Joubert <emile at rabbitmq.com>
To: Saima Asif <abdullahsaima at yahoo.com>
Cc: "rabbitmq-discuss at lists.rabbitmq.com" <rabbitmq-discuss at lists.rabbitmq.com>
Sent: Friday, 23 March 2012, 11:28
Subject: Re: [rabbitmq-discuss] Help required: How to keep the length of a message in bytes
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120323/9fdaaa52/attachment.htm>
More information about the rabbitmq-discuss
mailing list