The answer to the quiz on strong consistency expects "write one, read all" to be the correct answer. How can writing to one node be strong consistency?
The answer to the quiz on strong consistency expects "write one, read all" to be the correct answer. How can writing to one node be strong consistency?
Hi,
Strong consistency means that you can read the data that you wrote into the database with assurance. As long as you have Read Consistency + Write Consistency > Replication Factor, you will achieve strong consistency.
In the case of "write one, read all", it is the consistency level READ ALL that delivers the strong consistency.
Even if only one replica has the latest, because only one replica was updated, all replicas are consulted for the reads, and one of them has the correct data (correct data = latest update). If the returned data differs, Cassandra will select the latest data based on the write timestamp before it gives it to the read request.
Opting for READ ALL will give you strong consistency, because you are reading everything, but it also requires all replicas to respond, which requires 100% availability, so it offers the least resiliency to failure.
But within the scope of the quiz, yes, this answer also applies.
7 People are following this question.
Storing and Retrieving blobs fails to compile on both Gitpod and Ubuntu 20.04
"nodetool status" for the week 5 exercises gives "Failed to connect" errors
Issue with Java 11 for cassandra-workshop-series/week3-AppDev-crud/crud-java
Where can I find details of the homework for week 1 of the workshop?
What else do I need to do after completing the validation quiz for week 2 of the series?
DataStax Enterprise is powered by the best distribution of Apache Cassandra ™
© 2023 DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.
Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.
Privacy Policy Terms of Use