Return-Path: Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: (qmail 58525 invoked from network); 4 Feb 2011 18:33:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Feb 2011 18:33:11 -0000 Received: (qmail 64255 invoked by uid 500); 4 Feb 2011 18:33:11 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 64227 invoked by uid 500); 4 Feb 2011 18:33:10 -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 64219 invoked by uid 99); 4 Feb 2011 18:33:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Feb 2011 18:33:09 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rajkumar.w93@gmail.com designates 209.85.161.42 as permitted sender) Received: from [209.85.161.42] (HELO mail-fx0-f42.google.com) (209.85.161.42) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Feb 2011 18:33:03 +0000 Received: by fxm11 with SMTP id 11so3505907fxm.15 for ; Fri, 04 Feb 2011 10:32:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:content-type; bh=MxRiiyZEdB/p658D9hJAXSiGfyl4YlD8LYLMGfN35e8=; b=hjj6ylE5oY8LItw4Gt+2g3fbkMpZVG9y3ujMVGI5jNee5u7q7RX60CID4OriS1Tfcm aQcon3BZh766l8CLRTe5FAFbt7bnhKm5pB/TyfWmawPsB0pzb+CLdSFTVW3q1INcbt5/ SSyYXeya9PqV7MWS5IcKAkXpI50CFStJx3boU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=jRb4pJFA2Qald0CRH5Hu3Qz8KN0x4FTFh582WIrM5nbXSbgHBOQW5xh2rkP3gHwizN HprBjKoGeS1Nr8yM1gcSoKNNXyHLWVRlVTNJCO0buVJiZzkC1vAUWah+y+CQlU1ga27B R+lbrF30NvWTSYBwOWGTJ01NEAn/kzgFX9QZY= MIME-Version: 1.0 Received: by 10.223.93.144 with SMTP id v16mr11034073fam.35.1296844356657; Fri, 04 Feb 2011 10:32:36 -0800 (PST) Sender: rajkumar.w93@gmail.com Received: by 10.223.87.72 with HTTP; Fri, 4 Feb 2011 10:32:36 -0800 (PST) Date: Sat, 5 Feb 2011 00:02:36 +0530 X-Google-Sender-Auth: zDAxzdoiMpVKdah2ESHjM_V-5RA Message-ID: Subject: Using a synchronized counter that keeps track of no of users on the application & using it to allot UserIds/ keys to the new users after sign up From: Aklin_81 To: user@zookeeper.apache.org Content-Type: text/plain; charset=ISO-8859-1 Hi all, To generate new keys/ UserIds for new users on my application, I am thinking of using a simple synchronized counter that can keep track of the no. of users registered on my application and when a new user signs up, he can be allotted the next available id. Since I am using Cassandra, a distributed & evetually consistent DB, it is difficult to implement this with it. Can it be implemented with the help of zookeeper? Please let me know your thoughts and suggesttions.. Regards Asil