This is a design level question,
I have a node setup like Node N1, N2 and N3 where my application and database (as of now consider as Cassandra) runs in all 3 nodes.
I need to provide the data consistency for the following scenario, Could someone provide answers?
- Thread (T1) tries to edit the data in Node N1
- Thread (T2) tries to edit the same data from Node N2
- Only one write should succeed
In this case, what will happen in Cassandra?
Is there a way to provide the concurrency via application / Cassandra database? Or any Algorithms?
Apart from LWT in Cassandra.