<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Dear Emile,</span></div><div><span></span>&nbsp;</div><div><span>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. </span></div><div><span></span>&nbsp;</div><div><span>Thanks for help. </span></div><div></div><div>&nbsp;</div><div>Saima </div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <div style="margin: 5px 0px;
 padding: 0px; border: 1px solid rgb(204, 204, 204); height: 0px; line-height: 0; font-size: 0px;" class="hr" contentEditable="false" readonly="true"></div>  <b><span style="font-weight: bold;">From:</span></b> Emile Joubert &lt;emile@rabbitmq.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Saima Asif &lt;abdullahsaima@yahoo.com&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> "rabbitmq-discuss@lists.rabbitmq.com" &lt;rabbitmq-discuss@lists.rabbitmq.com&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, 23 March 2012, 11:28<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [rabbitmq-discuss] Help required: How to keep the length of a message in bytes<br> </font> </div> <br>Hi Saima,<br><br>On 23/03/12 11:13, Saima Asif wrote:<br>&gt; I am working on Rabbit MQ messages, I need you help about how to keep<br>&gt; the length of a message in bytes. Before this I was just considering the<br>&gt; routing
 key and taking the length of this string in bytes. Now I want to<br>&gt; know what else is important in the message to consider that affects the<br>&gt; message lenght. Any help would be highly appreciated.<br><br>I'm not sure I understand your question. What are you trying to do?<br><br>The length of the message body (byte array) will normally exceed the<br>length of the routing key. Message headers and internal accounting<br>fields also contribute to the overall memory and/or disk footprint of a<br>message.<br><br>If you are performing a scoping exercise to estimate the amount of RAM<br>required then use the expected message body size instead of the routing key.<br><br><br>-Emile<br><br><br><br> </div> </div>  </div></body></html>