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

Saima Asif abdullahsaima at yahoo.com
Tue Mar 27 14:14:40 BST 2012


Hello,
 
I am working on my simulator that I want to build on specific features of RabbitMQ. I want to 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. 
PLEASE HELP !
 

Saima Asif
 

________________________________
 From: Saima Asif <abdullahsaima at yahoo.com>
To: Emile Joubert <emile at rabbitmq.com> 
Cc: "rabbitmq-discuss at lists.rabbitmq.com" <rabbitmq-discuss at lists.rabbitmq.com> 
Sent: Friday, 23 March 2012, 11:31
Subject: Re: [rabbitmq-discuss] Help required: How to keep the length of a message in bytes
  

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



  
_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss at lists.rabbitmq.com
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120327/76877a5c/attachment.htm>


More information about the rabbitmq-discuss mailing list