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 E963210884 for ; Wed, 31 Jul 2013 11:50:07 +0000 (UTC) Received: (qmail 53181 invoked by uid 500); 31 Jul 2013 11:50:07 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 53128 invoked by uid 500); 31 Jul 2013 11:50:07 -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 53120 invoked by uid 99); 31 Jul 2013 11:50:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jul 2013 11:50:06 +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 (athena.apache.org: domain of cf@renttherunway.com designates 209.85.215.46 as permitted sender) Received: from [209.85.215.46] (HELO mail-la0-f46.google.com) (209.85.215.46) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jul 2013 11:50:01 +0000 Received: by mail-la0-f46.google.com with SMTP id eh20so425013lab.33 for ; Wed, 31 Jul 2013 04:49:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :x-gm-message-state; bh=aMNDHkAlLKp+4IqKUOtBt7C08QDaiKT03OPaxgSlXh0=; b=aeSbDsmNtp58rhW2yNpXQDY8YU5NKeVyH2ChF214wjhShLMUU400QOGT518aoNbMXC 1FNdBk6kq1p1le7Ku9uHngiy5TBZz0gzD2bVS+XKTlgGOGSW86dpVbwIj7qKSswX4jLx 8CDMYED+4hVxFEeeCWOG8Jr4JAJNz4I8+OriTCnYYha8YV5agMBN9MQZUEItHAiTgUlB 6Mc+CooaGkKErjAPi068Nh7SIU+OHCuWESyOzuf3uNxF4rFuKuOrf9ZLTv91NLG4r18g 63FH1uc8YWAEQC/6/naHZfJ+6y0OkOysrPlWeUGAAEtT9yCN62iiaRzdWKWyZLoux+TP 9lwA== MIME-Version: 1.0 X-Received: by 10.152.170.162 with SMTP id an2mr30878460lac.3.1375271380126; Wed, 31 Jul 2013 04:49:40 -0700 (PDT) Sender: cf@renttherunway.com Received: by 10.112.6.137 with HTTP; Wed, 31 Jul 2013 04:49:39 -0700 (PDT) Received: by 10.112.6.137 with HTTP; Wed, 31 Jul 2013 04:49:39 -0700 (PDT) In-Reply-To: References: Date: Wed, 31 Jul 2013 07:49:39 -0400 X-Google-Sender-Auth: 4Cvesb_1A0ufoE2R9lfWoI4eujQ Message-ID: Subject: Re: Zookeeper performance From: Camille Fournier To: "bookkeeper-user@zookeeper.apache.org" Content-Type: multipart/alternative; boundary=089e011615e4151dc904e2cd52c3 X-Gm-Message-State: ALoCoQlxqE70AMfeyEr4Xoh8jqvnvfgPkX7myFgcc+vL5WH2BpvlX6L/3zKUpPZfey5O9JX+Jlc+ X-Virus-Checked: Checked by ClamAV on apache.org --089e011615e4151dc904e2cd52c3 Content-Type: text/plain; charset=ISO-8859-1 This sounds highly error prone to me regardless of whether or not zookeeper can handle the load-. Why not just use a standard transaction model with a vector clock or other timing device to detect conflicts so you don't have to worry about a second server to talk to (zookeeper) to do an update? On Jul 31, 2013 7:17 AM, "Baskar Duraikannu" wrote: > Hello > > We are looking to use zookeeper for optimistic concurrency. Basically when > the user saves data on a screen, we need to lock, read to ensure that no > one else has changed the row while user is editing data, persist data and > unlock znode. > > If the app/thread does not get a lock, we may set a watch so that polling > is avoided. > > Our application is write intensive certain times of the day. We may get > about 100k requests per second. Can zookeeper handle this volume? --089e011615e4151dc904e2cd52c3--