Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 72157 invoked from network); 4 Jul 2006 05:35:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Jul 2006 05:35:23 -0000 Received: (qmail 7061 invoked by uid 500); 4 Jul 2006 05:35:23 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 7034 invoked by uid 500); 4 Jul 2006 05:35:23 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 7025 invoked by uid 99); 4 Jul 2006 05:35:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jul 2006 22:35:22 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jul 2006 22:35:22 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FxdYr-0000p9-SX for activemq-users@geronimo.apache.org; Mon, 03 Jul 2006 22:35:01 -0700 Message-ID: <5162189.post@talk.nabble.com> Date: Mon, 3 Jul 2006 22:35:01 -0700 (PDT) From: nlif To: activemq-users@geronimo.apache.org Subject: Re: Duplicating Large Messages In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: naaman@dbnet.co.il X-Nabble-From: nlif References: <5139730.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks James. This is very valuable input. Consumer prefetch - this is a great tip. I was unware of this ActiveMQ feature. However, at this point, consumer memory is NOT my problem, since each consumer will recieve one copy of the large message, and they should be able to handle it. My problem is at the producer side, because it has to duplicate the messages. Queue vs Topic - From your reply I understand that while using multiple queues will indeed result in message duplication - using a topic will not. And if using a durable topic will also take care of a scenario in which not all of the consumers are reachable at the time of sending, while not costing me in memory - then this may be a viable solution. (you say that durable topics use the disk, right?) The reason I think I have to use selectors when using a topic, is because I sometime want to send something to some, but not all, of my consumers, and the recipients are determined dynamically. For example, I may need to send message A to consumers 1,3,5 and then message B to consumers 1,3,4. The only way I can think of is using a single Topic, adding a recipient list to the message header, and adding selectors to the consumers. Is there any other way? I would be happy to know. ActiveMQ JMS Streams - Thanks for this tip! Does this mean that even when sending a huge file, at any given moment only a small portion of it is in memory? If so - this can be very helpful to us. Great feature! In fact, one of the things I considered for handling very large messages, was splitting them to smaller ones, sending them separately, and then using an Aggregator on the consumer side (I read about this is Gregor Hohpe's excellent "Enterprise Integration Patterns"). However, it seems to me that when running in a cluster - an aggregator cannot work, since parts of the message can end up in different machines on the cluster. Is there any way to split a message to smaller chunks and then ensure they all get to the same place, even in a cluster? Thanks a lot for your time and insights. Naaman -- View this message in context: http://www.nabble.com/Duplicating-Large-Messages-tf1880194.html#a5162189 Sent from the ActiveMQ - User forum at Nabble.com.