<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> </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> </div><div><span>Thanks for help. </span></div><div></div><div> </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 <emile@rabbitmq.com><br> <b><span style="font-weight: bold;">To:</span></b> Saima Asif <abdullahsaima@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "rabbitmq-discuss@lists.rabbitmq.com" <rabbitmq-discuss@lists.rabbitmq.com> <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>> I am working on Rabbit MQ messages, I need you help about how to keep<br>> the length of a message in bytes. Before this I was just considering the<br>> routing
key and taking the length of this string in bytes. Now I want to<br>> know what else is important in the message to consider that affects the<br>> 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>