Google News
logo
Cassandra - Interview Questions
What do you understand by Data Replication in Cassandra?
* Database replication is the frequent electronic copying of data from a database in one computer or server to a database in another so that all users share the same level of information.

* Cassandra stores replicas on multiple nodes to ensure reliability and fault tolerance. A replication strategy determines the nodes where replicas are placed. The total number of replicas across the cluster is referred to as the replication factor. A replication factor of 1 means that there is only one copy of each row on one node. A replication factor of 2 means two copies of each row, where each copy is on a different node. All replicas are equally important; there is no primary or master replica. As a general rule,  the replication factor should not exceed the number of nodes in the cluster. However, you can increase the replication factor and then add the desired number of nodes later.
Advertisement