April 2017
Beginner to intermediate
360 pages
9h 35m
English
Cassandra's tunable consistency allows us to specify for each query how many replicas must be involved for the request to be considered a success. Consistency is not directly specified as part of the CQL query; instead, it is provided as an additional parameter given to the driver when performing a query. Different language drivers handle this differently, but any CQL driver should provide an interface for specifying the consistency for a given query.
Cassandra defines eleven different consistency levels, but many of them are for fairly specialized scenarios. We will explore the three most important and useful consistency levels: ONE, ALL, and QUORUM.
Read now
Unlock full access