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 BB06D8C0F for ; Wed, 10 Aug 2011 16:37:56 +0000 (UTC) Received: (qmail 43340 invoked by uid 500); 10 Aug 2011 16:37:56 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 43230 invoked by uid 500); 10 Aug 2011 16:37:55 -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 43223 invoked by uid 99); 10 Aug 2011 16:37:55 -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 16:37:55 +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 16:37:49 +0000 Received: by wwf5 with SMTP id 5so1182544wwf.1 for ; Wed, 10 Aug 2011 09:37:28 -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 :references:in-reply-to:content-type:content-transfer-encoding; bh=4+X5mphoKqVTPlIZRSbJaC+PYyS5y1hLbUuZKQinTAg=; b=ev584LEB0a2HcGx+MTF5V9Rla3FM7rzTa/AnLneZhS+jgfvzCUmxj9y4nC5OfzFzRZ DTv7LdWLcvmeAL7cWEUQows5K6+M7HatfbWkof0TKUcgy38NJHmtdFzrzns3wj8FdtqY N/HDcY1ttsfwqaXszYWLwu0iKyqTCr7bfmMd4= Received: by 10.216.176.17 with SMTP id a17mr741701wem.72.1312994247919; Wed, 10 Aug 2011 09:37:27 -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 eq21sm619124wbb.52.2011.08.10.09.37.26 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 10 Aug 2011 09:37:26 -0700 (PDT) Message-ID: <4E42B3C5.3050606@gmail.com> Date: Wed, 10 Aug 2011 18:37:25 +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: Re: Replication & activeMQ References: <4E42A6F1.6060709@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 8/10/11 6:16 PM, Kiran Ayyagari wrote: > >> 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 ? >> > the syncrepl protocol provides a high level of granularity about the > kind of data that can be > replicated, so not each mod in this journal is necessarily replicated > to a client (it can even be > a serious issue to send to that client based on the sensitivity of data). > > This brings the issue of filtering the data that needs to be sent to > the client, this requires significant > time for scanning, processing and maintaining the position pointers in > the monolithic journal. Don't get me wrong : we will have one journal per replication consumer. The filtering will then be done once, on the provider side. > > ActiveMQ's core offers all these features so that was a preferred > choice instead of writing a journal with all the above > mentioned features, cause implementing such a journal is quite a > handful of work and our main problem to be solved > is replication. > > Having said that ActiveMQ is definitely an over kill to be used as a > journal, the main part that we actually need is > it's journal/store implementation called 'kahadb' but it is easy to > use through high level message queue interfaces. > > I would like to spend some time on 'kahadb' source to see if that can > be easily embeddable and serves our purpose. Yes, this is exactly what I was looking at when I saw your mail. That may be a very good balance between complexity and ease of use. -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com