Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 41059 invoked from network); 3 Feb 2011 19:09:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Feb 2011 19:09:32 -0000 Received: (qmail 27161 invoked by uid 500); 3 Feb 2011 19:09:30 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 27007 invoked by uid 500); 3 Feb 2011 19:09:29 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 26993 invoked by uid 99); 3 Feb 2011 19:09:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Feb 2011 19:09:29 +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 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rajkumar.w93@gmail.com designates 209.85.161.44 as permitted sender) Received: from [209.85.161.44] (HELO mail-fx0-f44.google.com) (209.85.161.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Feb 2011 19:09:22 +0000 Received: by fxm9 with SMTP id 9so1617786fxm.31 for ; Thu, 03 Feb 2011 11:09:01 -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=VTy0ffxD4o9VyWvhZEAJo9B3UnKaQxyboPX5Jz2c77U=; b=xSV/mOJP6qwoF54yFtnyIxanBV0TC3MALmN+tO8lVqtH0kWYkRE9cnNgB6zTEUa+WM +YLelW8CJT+4TpTQiCEtD+VA8NDImj/JgANCfNr7C8Cz1Dt7oBu3Lx/2lUc0xmJxJaGX P+U1SloBAEaW/FL/4sB2mk/DTnXXnYYiYYsq8= 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=Vu6aRrcXjbJujptyXfJ2H2taF7VRWkg16re/O9qk7NCNpUahQuc4WylgP/zJYXpVk/ h+zRclr5PugPNbGXspjtEPaL+b6r6m6jyhzReu4ouPy9p5D3+wkjdDJ1QUvMpF0o6+UV fCSexmAi8oTK4K6nrze+SqXdYutihnSkDWC78= MIME-Version: 1.0 Received: by 10.223.101.140 with SMTP id c12mr4402153fao.16.1296759780267; Thu, 03 Feb 2011 11:03:00 -0800 (PST) Sender: rajkumar.w93@gmail.com Received: by 10.223.87.72 with HTTP; Thu, 3 Feb 2011 11:03:00 -0800 (PST) Date: Fri, 4 Feb 2011 00:33:00 +0530 X-Google-Sender-Auth: 2DN3p2yZLAd0gwvXzhX5P3ITIzc 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 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 Cassandra is eventually consistent, Is this advisable to implement with Cassandra, but then I could also use stronger consistency level like quorum or all for this purpose. Please let me know your thoughts and suggesttions.. Regards Asil