Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-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 469169120 for ; Mon, 23 Jan 2012 10:53:58 +0000 (UTC) Received: (qmail 74202 invoked by uid 500); 23 Jan 2012 10:53:57 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 74142 invoked by uid 500); 23 Jan 2012 10:53:57 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 74134 invoked by uid 99); 23 Jan 2012 10:53:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2012 10:53:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gary.tully@gmail.com designates 209.85.216.171 as permitted sender) Received: from [209.85.216.171] (HELO mail-qy0-f171.google.com) (209.85.216.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jan 2012 10:53:50 +0000 Received: by qcsd15 with SMTP id d15so1453930qcs.2 for ; Mon, 23 Jan 2012 02:53:29 -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:content-transfer-encoding; bh=fMh0o8gDEss94e+qIWXhYS2ivuQtoAXScqUuh5za800=; b=VpQjU3WlxiiUwHJ480U5+EsVUdk0phG8FGrety7zasO2R61+qIWrLyb87p7cN/kmG/ gQMDCmqY7NziJWmjZrR/sq2863ERP/TsTNPwMfHGz2OLpV3uITRdVSmXT+dNpjmtAeYg vlNW5CpfbCP6rd7sHyr+7Tm4MAPNjAHmVExaY= MIME-Version: 1.0 Received: by 10.229.136.196 with SMTP id s4mr1437850qct.71.1327316009795; Mon, 23 Jan 2012 02:53:29 -0800 (PST) Received: by 10.229.32.65 with HTTP; Mon, 23 Jan 2012 02:53:29 -0800 (PST) In-Reply-To: References: Date: Mon, 23 Jan 2012 10:53:29 +0000 Message-ID: Subject: Re: ActiveMQ and memory cache From: Gary Tully To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org That would be great to spike into a proof of concept. The memory persistence adapter would be an ideal start point as it maintains some simple in memory lists that would be easy to replicate. Reusing something as solid as memcached makes sense if it is not too difficult to setup and maintain. For sure there are some usecases that would benefit from a simple shared memory persistence impl. However dealing with message order and concurrent consumers on the same destination will require some thought. On 23 January 2012 08:51, Herv=E9 BARRAULT wrote= : > Hi, > I have a question about an idea of deployment. > > Is it possible to use something like memcached to create only one > broker over multiple hosts/JVMs ? > > The main idea is to use an "embeded broker" in each JVM but seen as > only one broker. By this way, i can use VM protocol (no serialization > i =A0guess) instead of STOMP or TCP. > > In normal case the message will be produced and consumed in the same > JVM but only in case of a JVM/host crash, the message will be consume > in another one. > > I think also by this way to avoid persisting messages in files or > database but in a "shared distributed memory" ( it is not as safe as > persistence but i could loose messages only if all JVM crashes). > > Thanks for answers > > Regards > Herv=E9 --=20 http://fusesource.com http://blog.garytully.com