Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

satvantsingh_190085 avatar image
satvantsingh_190085 asked ·

What is best practice for read and write consistency?

What is the best practice to set write or read consistency as per number of nodes and RF factor ?

cassandraconsistency
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

We recommend configuring 3 replicas in each of the data centres in the cluster using NetworkTopologyStrategy for high availability.

3 replicas allows for strong consistency using one of the quorum levels LOCAL_QUORUM, EACH_QUORUM and QUORUM. A strong consistency level is recommended in almost all use cases with very few exceptions.

You can read more about it in the Data Replication and How consistency level is configured pages. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.