Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 44341 invoked from network); 4 Nov 2009 21:55:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Nov 2009 21:55:16 -0000 Received: (qmail 21493 invoked by uid 500); 4 Nov 2009 21:55:15 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 21464 invoked by uid 500); 4 Nov 2009 21:55:15 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 21445 invoked by uid 99); 4 Nov 2009 21:55:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 21:55:15 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of michael.greene@gmail.com designates 209.85.219.209 as permitted sender) Received: from [209.85.219.209] (HELO mail-ew0-f209.google.com) (209.85.219.209) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 21:55:12 +0000 Received: by ewy5 with SMTP id 5so2156930ewy.12 for ; Wed, 04 Nov 2009 13:54:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=5LyLQ08vU0QNHmzoC0cLMH+Fe3OkwvUIChtKbdDDCEs=; b=CTvqRs/xaaHEa7LUCjcTlqrLlUcBx2EsRgTcGQWOuZec6AykDGiJVIWWITD078c9pu AI5W6l1v0qBvrtydP6j2Sd4a8Z9dSdz6lLw7qeJ+l2xLAiDr9jQw3bybvVEb7yL2YEhN 2Na6lef890iHt01eT51GeGaJU/GnhXqmStMAE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=pxDHSAse1Q+KzlwxY3OOrlMVP9meRrfmgdepaHY1TlW4PXUTbhVw857U8kuPCdrscp jtcaE2o51Gp5tu926eZcXtV/4F0K+PAMEYY3AblVPT70vAhpKpcWu1Z0TYH/v5nhXX/4 okASgkC+DBpcSK9LV5AT5V2py+yJVlWVmNX6w= MIME-Version: 1.0 Received: by 10.216.89.205 with SMTP id c55mr738699wef.186.1257371690911; Wed, 04 Nov 2009 13:54:50 -0800 (PST) In-Reply-To: <4AF1F749.5050509@dehora.net> References: <6E415F02-B17C-4559-94AA-D82903DD113C@digg.com> <4AF1F749.5050509@dehora.net> Date: Wed, 4 Nov 2009 15:54:50 -0600 Message-ID: Subject: Re: Incr/Decr Counters in Cassandra From: Michael Greene To: cassandra-dev@incubator.apache.org Cc: cassandra-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 This has come up before at http://markmail.org/thread/w3mrh4h64xpf3vuj and http://markmail.org/message/vnmsuddlrhaziq7g I am in favor of adding eventually-consistent atomic operations such as this, but I'm not sure how one would implement it. Some sort of UUID + bloomfilter for the individual atomic operations? I tend to think "retrieve and increment" as requested by Jon is at odds with eventual consistency, but maybe I'm wrong. Michael On Wed, Nov 4, 2009 at 3:51 PM, Bill de hOra wrote: > > > Chris Goffinet wrote: >> >> Hey, >> >> At Digg we've been thinking about counters in Cassandra. In a lot of our >> use cases we need this type of support from a distributed storage system. >> Anyone else out there who has such needs as well? Zookeeper actually has >> such support and we might use that if we can't get the support in Cassandra. > > I tend to need a generalization on incr/decr which is plus/minus (eg for > quota management). Having these in Cassandra would be great. > > Bill >