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.
Consistency in action
Write consistency
Let's create the keyspaces with replication factors 2 and 3 as discussed in the preceding section. To distinguish both the keyspaces, we will include...