What is the difference between ONE and LOCAL_ONE consistency levels?
Last updated
Both need one replica's response:
ONEaccepts a replica in any datacenter (possibly over the WAN), whileLOCAL_ONErequires it to be in the coordinator's local DC.In multi-DC clusters
LOCAL_ONEavoids cross-region latency and bandwidth cost. In a single DC they behave the same.Both give lowest latency and highest availability but weakest consistency, so reads may return stale data.
- https://www.geeksforgeeks.org/dbms/consistency-levels-in-cassandra/
- https://cassandra.apache.org/doc/stable/cassandra/architecture/dynamo.html
- https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html
- https://medium.com/@ozlemgunes97/cassandra-consistency-levels-05caa90095c0
- https://www.pythian.com/blog/cassandra-consistency-level-guide