<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hello,</span></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 id="yiv1256889163"><div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 12pt; background-color: rgb(255, 255, 255);"><div><span></span>&nbsp;</div><div><span>I am working on my simulator that I want to build on specific features of RabbitMQ.&nbsp;I want to&nbsp;take the length of the message to estimate how much time an exchange would take to process it. How can I estimate the length of the message. I am done with considering the "routing key" and just taking its length in bytes. Now I want to have more realistci approach RabbitMQ is using. </span></div><div><span>PLEASE HELP
 !</span></div><div><span></span>&nbsp;</div><div></div><div>&nbsp;</div><div>Saima Asif<br></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="yiv1256889163hr"></div>  <b><span style="font-weight: bold;">From:</span></b> Saima Asif &lt;abdullahsaima@yahoo.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Emile Joubert &lt;emile@rabbitmq.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:31<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><div id="yiv1256889163"><div><div style="color: rgb(0, 0, 0); font-family: times new roman, new york, times, serif; font-size: 12pt; background-color: rgb(255, 255, 255);"><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="yiv1256889163hr"></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></div></div><br>_______________________________________________<br>rabbitmq-discuss mailing list<br><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" rel="nofollow" target="_blank"
 ymailto="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" rel="nofollow" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br><br><br> </div> </div>  </div></div></div><br><br> </div> </div>  </div></body></html>