Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cassandra one way replication

Tags:

cassandra

Does Cassandra support one direction replication? Say I have 2 DCs, DC1 and DC2. Real time data is being written only in DC1 and asynch replication happens in DC2. Is there a way now if I do some write on same data in DC2, it does not get replicated in DC1?

like image 303
Kanwar bir singh sangha Avatar asked Jun 28 '26 22:06

Kanwar bir singh sangha


1 Answers

There is no concept of one way replication. If your replication factor is 2 then it will replicate data in any two nodes. You are using DC1 and DC2 then you have to use the "NetworkTopologyStrategy" and define the replication factor for each DC. Your problem will automatically resolve using "Snitch" tool to decided data store in different nodes in both DC's.

like image 83
user5458288 Avatar answered Jun 30 '26 16:06

user5458288



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!