Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

In Cassandra how simultaneous distributed writes maintain consistency?

$
0
0

There is a three node Cassandra cluster with replication factor 3 and consistency quorum with nodes X, Y, Z. So either of the three can be the coordinator.

Assuming there are two simultaneous operations executed at the same time one as coordinator X and other with coordinator Z to change the status.

Operation 1 (On X): to change the status from 0 -> 1 Operation 2 (On Z): to change the status from 0 -> 2

Now the final state should be of Value 2, but what if Operation 2 is executed before Operation 1, what would be the final status?

Thanks for your help.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>