cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Kerzner <>
Subject Cassandra and concurrent programming
Date Mon, 16 May 2011 20:51:21 GMT
Hi, guys,

what happens if I have two threads or two processes, both of which need to
ask if some condition in Cassandra is fulfilled, and then, say, write the
data based on that. If one receives the "no" answer and decides to write,
but before he does, the other one receives the "no" answer and writes first,
then the action of the first one is based on the wrong assumption.

In threading, you would do an atomic "put if not present," is there such a
thing in Cassandra?

Thank you,

View raw message