Hello, I have been working on the implementation of compare-and-swap (cas) at the client level on top of Cassandra. The result of my work is available on https://github.com/otrack/PSSOLib. It is a small python library which contains a few atomic concurrent objects, including cas, and which uses an off-the-shelf Cassandra implementation.
The approach I have taken is explained in a paper located in the bib directory. Roughly speaking, the idea is to implement only obstruction-free objects to sidestep the consensus/CAP impossibility result. I hope this might interest you. Best, Pierre