Using write consistency QUORUM, read consistency QUORUM for strong consistency

Writing and reading at QUORUM level allows strong consistency. When combined with a replication factor of three or higher, QUORUM operations still succeed even when some of the nodes are down. Using quorum is favored in many cases because it brings consistency, good performance, and failure tolerance. This recipe demonstrates the features of QUORUM.

Getting ready

This recipe requires the application from the last recipe: Using write consistency ONE, read consistency ONE for low latency operations. This requires a keyspace and a column family to work with.

How to do it...

  1. Create a list of all hosts in the cluster. Set readLevel and writeLevel to QUORUM and run the ConsistencyPerformanceTester ...

Get Cassandra High Performance Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.