Replication strategy

Replication strategy determines how data is written to and read from Cassandra. This is set at the keyspace level. Together with replication factor, this guides the entire replication process of a keyspace.

  • SimpleStrategy: So far, we have created keyspace with this replication strategy. This strategy places replicas on any node within cluster, irrespective of the snitch or data center. It treats the entire cluster as a single data center.
  • NetworkTopologyStrategy: This replication strategy is used to specify data centers and the number of replicas to place within each data center. Together with the snitch, this ensures that Cassandra is aware of data centers and replica placement is immaculate. Suppose you have two data ...

Get Learning Apache Cassandra - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.