Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 07850117C4 for ; Sat, 7 Jun 2014 12:48:36 +0000 (UTC) Received: (qmail 51115 invoked by uid 500); 7 Jun 2014 12:48:34 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 50909 invoked by uid 500); 7 Jun 2014 12:48:34 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 50886 invoked by uid 99); 7 Jun 2014 12:48:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jun 2014 12:48:34 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rakeshr.apache@gmail.com designates 209.85.219.48 as permitted sender) Received: from [209.85.219.48] (HELO mail-oa0-f48.google.com) (209.85.219.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Jun 2014 12:48:31 +0000 Received: by mail-oa0-f48.google.com with SMTP id g18so4002127oah.21 for ; Sat, 07 Jun 2014 05:48:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=62Y/ybLtvrqquDd+eolceRXa3HDGOCKu3Ut0ww5Xy4A=; b=HYSIVkjFugLJ7Va05HK6JDZMux8IWuWg/eL91QakEyyaTPkclPwRhozR9eom7DBU/1 P2xcsqIQIMFXbSE7bOnrFw2NF/6IjccZ9BnH9mT2QnoKmZmG3hrAP6VtLWEEOhLU0iuo UHp4TSdueHYzAv/L5iBh5GqM2payDwCpDMbqOATx9Fqj0FAqWKDBW8LpVGa7HKh+ueLH BpwpG+HicWixMxV/zUxZZ7e8yzlJsmGFSfH65JJ1IbfvoyUPHSvrQS0FnGXTdTR59yKo 1bbWMNXcN3mLrcUeb+fkg8jEyZrjygRz75ku8ewqZu6vJ+vfEd4/Kw/pHwJFRwioC3iF wqHg== MIME-Version: 1.0 X-Received: by 10.60.129.201 with SMTP id ny9mr13527190oeb.5.1402145287259; Sat, 07 Jun 2014 05:48:07 -0700 (PDT) Received: by 10.76.132.231 with HTTP; Sat, 7 Jun 2014 05:48:07 -0700 (PDT) In-Reply-To: <1401990191887-7579952.post@n2.nabble.com> References: <1401990191887-7579952.post@n2.nabble.com> Date: Sat, 7 Jun 2014 18:18:07 +0530 Message-ID: Subject: Re: Distributed Applocation using Zookeeper From: Rakesh Radhakrishnan To: user@zookeeper.apache.org, kapildeshpande.1988@gmail.com Cc: zookeeper-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7b41486ec5490804fb3e637b X-Virus-Checked: Checked by ClamAV on apache.org --047d7b41486ec5490804fb3e637b Content-Type: text/plain; charset=UTF-8 Hi Kapil, ZooKeeper server guarantees a total order of messages, and it also guarantees a total order of proposals. It has internal mechanism to do the total ordering, which uses a transaction id (zxid) for the requests. As I know, each transaction is independent to each other. Could you give more details about your usecases and the way you are going to use ZooKeeper. It would help to understand more. >>>>>> So why locks are needed in first place? It will be great if some one can help here. I didn't fully get your point about locking. Are you talking about distributed locking recipe ? Regards, Rakesh On Thu, Jun 5, 2014 at 11:13 PM, Kapil wrote: > Hi, > I need to design distributed application using zookeeper. This is the first > time I am using Zookeeper so I am little confused with its usage. I have > read that Zab protocol ensures serializability when it comes to multiple > updates but I am unable to understand, if that is the case than it will > automatically allow lock free implementation. So why locks are needed in > first place? It will be great if some one can help here. > > Thanks > > > > > -- > View this message in context: > http://zookeeper-user.578899.n2.nabble.com/Distributed-Applocation-using-Zookeeper-tp7579952.html > Sent from the zookeeper-user mailing list archive at Nabble.com. > --047d7b41486ec5490804fb3e637b--