Consistency in action

For a single-node cluster, consistency and replication factor didn't matter since you had only one copy of the data residing on the lone instance, and the instance had to be up all the time for the writes/reads to succeed regardless of the consistency level used. However, the dynamics change significantly for a multinode cluster as witnessed in the previous chapter. We will create two keyspaces; one with replication factor 2 and the other with replication factor 3. We will then stop a running instance and try out read/write operations with different consistency levels.

Get Learning Apache Cassandra - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.