[rabbitmq-discuss] MQ header question

Matthias Radestock matthias at rabbitmq.com
Mon Feb 21 08:34:49 GMT 2011


On 21/02/11 07:19, Ming Li wrote:
> I’m developing a stock quote distributing system, using Rabbit MQ. It
> seem like the header(looks like GUID) is somewhat large, is there a way
> to reduce it to a minimum? Is there some kind of settings that controls
> it? Is it possible that I have this setup wrong?
>
> I’m trying to reduce data transmitted size.
>
> Example:
>
> 0000 01 00 03 00 00 00 5f 00 3c 00 3c 21 61 6d 71 2e ......_.<.<!amq.
>
> 0010 63 74 61 67 2d 4e 32 78 6d 34 6d 67 74 36 6a 78 ctag-N2xm4mgt6jx
>
> 0020 2f 4c 2b 45 39 48 36 58 78 61 41 3d 3d 00 00 00 /L+E9H6XxaA==...
>
> 0030 00 00 00 14 60 00 12 52 4d 4d 53 6f 66 74 5f 51 ....`..RMMSoft_Q
>
> 0040 75 6f 74 65 54 6f 70 69 63 1c 51 75 6f 74 65 54 uoteTopic.QuoteT
>
> 0050 6f 70 69 63 2e 43 46 46 45 58 2e 49 46 2e 46 2e opic.CFFEX.IF.F.
>
> 0060 31 31 30 33 30 30 ce 02 00 03 00 00 00 3e 00 3c 110300

The guid in there is a consumer tag which the server generates on 
basic.consume, and subsequently includes in message deliveries. The tag 
can be specified by the client instead, which allows you to make it as 
short as you like, though it has to be unique per channel.


Regards,

Matthias.


More information about the rabbitmq-discuss mailing list