Return-Path: X-Original-To: apmail-qpid-users-archive@www.apache.org Delivered-To: apmail-qpid-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4E0F398B8 for ; Thu, 5 Jan 2012 18:58:24 +0000 (UTC) Received: (qmail 15282 invoked by uid 500); 5 Jan 2012 18:58:24 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 15250 invoked by uid 500); 5 Jan 2012 18:58:23 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 15242 invoked by uid 99); 5 Jan 2012 18:58:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2012 18:58:23 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rob.j.godfrey@gmail.com designates 74.125.82.170 as permitted sender) Received: from [74.125.82.170] (HELO mail-we0-f170.google.com) (74.125.82.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2012 18:58:16 +0000 Received: by wera13 with SMTP id a13so631141wer.15 for ; Thu, 05 Jan 2012 10:57:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=lTjsOn42FzEEM49eoiSU/7ndfB8uus4JQcL6ZxpNgVY=; b=FhF0SsdV+10NvPkymr5YoKc65l+TGQr+XP+u97sa/VR497HG2KkLVRtcpCx3GkjF0w mkFYnys30Rv+ObebYm2rLcmU4Zq5ja3udG7F/0gRUQWs5mdMV/3tp24UxMzkEys4+lxV sJYsUQiwdpuwfelRpxVbVkmIqXhI6i36UAeHI= MIME-Version: 1.0 Received: by 10.216.138.148 with SMTP id a20mr1776402wej.15.1325789876450; Thu, 05 Jan 2012 10:57:56 -0800 (PST) Received: by 10.216.5.69 with HTTP; Thu, 5 Jan 2012 10:57:56 -0800 (PST) In-Reply-To: <4F05EC4D.2040400@blueyonder.co.uk> References: <4F05EC4D.2040400@blueyonder.co.uk> Date: Thu, 5 Jan 2012 19:57:56 +0100 Message-ID: Subject: Re: Qpid Java Broker with persistance supports only finite number of messages? From: Rob Godfrey To: users@qpid.apache.org Content-Type: multipart/alternative; boundary=0016e6d58a7fa1f69e04b5cc82eb X-Virus-Checked: Checked by ClamAV on apache.org --0016e6d58a7fa1f69e04b5cc82eb Content-Type: text/plain; charset=ISO-8859-1 On 5 January 2012 19:30, Fraser Adams wrote: > Just to jump in on this thread. > > Re " > > > but my opinion > is that if you have "millions of messages" then a Message Broker is the > wrong solution to your problem - you want a Database. > > " > I can't say I agree with Rob's assertion here!! > > Well maybe that's a reasonable comment if the *intention* is to have > millions of messages hanging around, but what if it's due to an unfortunate > circumstance...... > > Indeed - that is what I meant :-) Planning for failure scenarios should always be carefully considered... As Robbie mentioned we have had people build up millions of messages on persistent queues... and if you use the 64-bit JVM and put large amounts of RAM in your box, then the physical limitations of maximum queue size can be made acceptably large... However I would always caution against designing a system where you expect to hold this number of *persistent* messages as part of your regular process - especially using the Java Broker as it is not designed for this sort of use case. The case you describe is somewhat different in that you are looking at transient messages (where one would expect the rate of production/consumption to be higher), and you want the broker to be capable of buffering for N minutes while temporary network outages occur. Flowing to disk may make sense here as long as the rate at which messages can flow through the disk is higher than the rate at which they are entering the broker (and actually high enough so that the backlog can quickly be reduced). This is where the flow-to-disk work that I hope to be starting soon on the Java Broker would play. -- Rob --0016e6d58a7fa1f69e04b5cc82eb--