From the course: Cassandra Data Modeling Essential Training

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Cassandra clusters

Cassandra clusters

- [Instructor] When designing Cassandra data models it helps to understand how data is organized on a single node and across nodes. We've talked about how the clustering key and partition keys are used for querying. Now let's take a look at how they are used when we write data to the cluster. In this example, we have a cluster of five nodes. All nodes perform the same kind of operations and can communicate with all other nodes. There's no distinction between a leader and worker nodes in Cassandra. All nodes run the same services. A partitioner is a hash function that maps from the partition key to a node in the cluster. The defaults partitioner keeps data evenly distributed across nodes and it's generally a good choice. The partitioner is designed to minimize the amount of data that has to be moved when a node is added or removed from the cluster. This type of hash function is called a consistent hash function. When…

Contents