<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Sorry to hijack the discussion here, but I'm ++1 on a head-style query of messages in a queue. I can think of several places right off where I could use this.<div><br></div><div>And I would be careful lumping all AMQP applications into a single bucket when it comes to message size. I would not write an application that interrogated the properties/headers of my batch file processor because it's sending zip files as message bodies but I would if I could get just the props/headers without the body. </div><div><br></div><div>I also have applications that send a key value as the message body; maybe a few bytes in size. It just depends.</div><div><br></div><div>jb</div><div><br><div><br><div><div>On Oct 1, 2010, at 8:46 AM, David Wragg wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Matthew Sackman <<a href="mailto:matthew@rabbitmq.com">matthew@rabbitmq.com</a>> writes:<br><blockquote type="cite">On Fri, Oct 01, 2010 at 01:45:46PM +0100, Michael Bridgen wrote:<br></blockquote><blockquote type="cite"><blockquote type="cite">In the case of plugins, using a direct connection is effectively the<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">same thing, by the way.<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">No it's not. The msg may be fully on disk and not in RAM, at which point<br></blockquote><blockquote type="cite">you have to issue a disk read regardless of whether the client is<br></blockquote><blockquote type="cite">embedded or not.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Furthermore, we do not store the message headers separately from the msg<br></blockquote><blockquote type="cite">body. Thus the only thing you're saving by getting one, not the other,<br></blockquote><blockquote type="cite">is network transfer. And given the average message body size, ethernet<br></blockquote><blockquote type="cite">frame size and the fact that we turn nagel off, I'm not convinced in the<br></blockquote><blockquote type="cite">average case you'd actually save anything at all, but I could be missing<br></blockquote><blockquote type="cite">something.<br></blockquote><br>We'd get the network traffic saving immediately. And if worthwhile,<br>later on we could store message bodies separately, above a certain size<br>threshold. At the moment there is no motivation to consider doing that,<br>because AMQP always transmits the properties and body together.<br><br>And I doubt there is a meaningful notion of the average message body<br>size. Different AMQP applications have different characteristics.<br><br>-- <br>David Wragg<br>Staff Engineer, RabbitMQ<br>SpringSource, a division of VMware<br>_______________________________________________<br>rabbitmq-discuss mailing list<br><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss<br></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Palatino; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Times; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><font class="Apple-style-span" face="Palatino" size="4"><span class="Apple-style-span" style="font-size: 14px; "><br class="Apple-interchange-newline">Thanks!</span></font></div><div><font class="Apple-style-span" face="Palatino" size="4"><span class="Apple-style-span" style="font-size: 14px; "><br></span></font></div><div><font class="Apple-style-span" face="Palatino" size="4"><span class="Apple-style-span" style="font-size: 14px; ">J. Brisbin</span></font></div><div><font class="Apple-style-span" face="Palatino" size="4"><span class="Apple-style-span" style="font-size: 14px; "><a href="http://jbrisbin.com/">http://jbrisbin.com/</a></span></font></div><div><font class="Apple-style-span" face="Palatino" size="4"><span class="Apple-style-span" style="font-size: 14px; "><br></span></font></div><div><font class="Apple-style-span" face="Palatino" size="4"><span class="Apple-style-span" style="font-size: 14px; "><br></span></font></div></div><font class="Apple-style-span" face="Palatino" size="4"><span class="Apple-style-span" style="font-size: 14px; "><br></span></font></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline"></span>
</div>
<br></div></div></body></html>