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
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...
- Create a list of all hosts in the cluster. Set
QUORUMand run the