What is tunable consistency in Cassandra and what consistency levels are available?
Last updated
Tunable consistency lets each read or write choose how many of N replicas must respond, balancing consistency, latency, and availability. R + W > N gives strong consistency.
Levels:
ONE/TWO/THREE,QUORUM,LOCAL_QUORUM,EACH_QUORUM,LOCAL_ONE,ALL.Special levels:
ANY(write only, a hint counts as success) andSERIAL/LOCAL_SERIALfor lightweight transaction reads.
- https://cassandra.apache.org/doc/stable/cassandra/architecture/dynamo.html
- https://teddyma.gitbooks.io/learncassandra/content/replication/turnable_consistency.html
- https://www.pythian.com/blog/cassandra-consistency-level-guide
- https://medium.com/@preethikcs01/cassandras-tunable-consistency-model-a-game-changer-for-distributed-systems-%EF%B8%8F-132a295749ce
- https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlAboutDataConsistency.html
- https://docs.datastax.com/en/cassandra-oss/2.1/cassandra/dml/dmlAboutDataConsistency.html
- https://tdwi.org/articles/2016/07/18/tunable-consistency-in-cassandra-nosql.aspx
- https://cassandra.apache.org/doc/latest/cassandra/managing/tools/cqlsh.html