Open snazy opened 11 years ago
cassandra 2.0 has this built in and we will expose it for cassandra 2.0 if that is alright???? what's your timeframe?
Also, we will circle back and support it for hbase which already has it built in. cassandra is catching up to hbase with this feature.
Cassandra 2.0 will be fine - it was just an idea for playORM
can't you expose astyanax locking until cassandra 2.0 will arrive?
it is a very large effort since a webserver farm would have multiple instances and would require something like zookeeper. we would gladly accept pull requests but we are backlogged on features as it is right now :(.
you do not need zookeeper. in astyanax documentation and core you can see how to do it. Its sequence of write random lock cookie, read back cookie, if same as written cookie, then record is locked. See sources for ColumnPrefixDistributedRowLock
ah, sounds pretty cool.
Nice to have: exclusive locks for rows - as described in astyanax's "distributed row lock"