Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C7BE81C9 for ; Wed, 10 Aug 2011 15:43:13 +0000 (UTC) Received: (qmail 26515 invoked by uid 500); 10 Aug 2011 15:43:13 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 26424 invoked by uid 500); 10 Aug 2011 15:43:12 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 26417 invoked by uid 99); 10 Aug 2011 15:43:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2011 15:43:11 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of elecharny@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2011 15:43:05 +0000 Received: by wwf5 with SMTP id 5so1131908wwf.1 for ; Wed, 10 Aug 2011 08:42:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=rIqIaCOqXaUW7tsQ0skNM45MtgvbmbTRViEQbpl2LCE=; b=n/PYjFQNrMF6kNyTvnyWvUUIZzvPDX3WHi9GDhUbUJlBFV2BMnjkjtyd+3g3Y6qOcs bJs6WE7obsgk8V1bC6P4eRHZeXZuG7uOSb3JMDvcgfirhLKL2A2MJInk5PWlBXnjjo7e UDydXpdHFJIC2VpX3ck9ArD9YoPjGm/z2tRb0= Received: by 10.227.38.9 with SMTP id z9mr7096583wbd.70.1312990963826; Wed, 10 Aug 2011 08:42:43 -0700 (PDT) Received: from emmanuel-lecharnys-MacBook-Pro.local (lon92-10-78-226-4-211.fbx.proxad.net [78.226.4.211]) by mx.google.com with ESMTPS id fr7sm850600wbb.5.2011.08.10.08.42.42 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 10 Aug 2011 08:42:42 -0700 (PDT) Message-ID: <4E42A6F1.6060709@gmail.com> Date: Wed, 10 Aug 2011 17:42:41 +0200 From: Emmanuel Lecharny Reply-To: elecharny@apache.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Apache Directory Developers List Subject: Replication & activeMQ Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi guys, currently, we are using ActiveMQ to store the modifications we send to the client. This leads to an issue caused by the way we have configured it, simply because all the mods are stored in memory, and never removed. Obviously, this is bad. Thinking about it, my opinion is that it's may be a bit overkilling considering our need : - when a mod is made on the provider, it has to be sent to the consumer - in any case, we store the mod in a file associated with the consumer - we send the mod to the consumer unless we *know* that the consumer is offline - we will have no way to be sure that the consumer has correctly received the mod - when a consumer gets online again, it will send a cookie with the last CSN it received - in this case, we have to get all the mods from the file, and send the mods to the consumer. Now, we already are saving the mods in a file, in the JournalInterceptor. We just have to implement the recovery system (ie, finding the last entry sent from the file) and send all the following entries. Then we can delete all the entries older than the requested one. I don't think that using our own implementation would be an issue here. I mean, ActiveMQ is a great piece of software, but having to go through tends of options (hundreds?), most of which are totally useless in our case, is a bit overkilling for this version. thoughts ? -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com