cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Yang <>
Subject Re: Counters 2.1 Accuracy
Date Wed, 24 Jun 2015 09:31:16 GMT
IMO, the main concern of C*'s counter is, it is not idempotent. For
example, if you add a counter and get a timeout error, you can not know
whether it is successful. For non-counter writes, they are idempotent so
you can just retry, but if you retry in counter, there may be a double

2015-06-23 12:23 GMT+08:00 Mike Trienis <>:

> Hi All,
> I'm fairly new to Cassandra and am planning on using it as a datastore for
> an Apache Spark cluster.
> The use case is fairly simple, read the raw data and perform aggregates
> and push the rolled up data back to Cassandra. The data models will use
> counters pretty heavily so I'd like to understand what kind of accuracy
> should I expect from Cassandra 2.1 when increment the counters.
>    -
> The blog post above states that the new counter implementations are
> "safer" although I'm not sure what that means in practice. Will the
> counters be 99.99% accurate? How often will they be over or under counted?
> Thanks, Mike.

Phil Yang

View raw message