-
1. Re: Can data be inconsistent when using asynchronous replication ?
sudheerk84 Jun 27, 2011 5:12 AM (in response to sudheerk84)I did find this on the forum which was closely relaetd to my question and it spoke aboou versioning as well.
http://community.jboss.org/wiki/VersioningDesignDocument
We do use database versioning to ensure consistency. But my question was even after this there is a possiblility of data inconsistency because of delay in network replication.
In the above example cache put in the different nodes can happen one after the other , hence there wouldnt be any database version exceptions. But during replication what if tehre is deply and teh older updates reaches after teh lastest one . Can there be any version support
OR
Should we use the database version of the cache item(entity) using cache lsitners and discard any old versions after receving teh new one ?
-
2. Re: Can data be inconsistent when using asynchronous replication ?
mircea.markus Jul 6, 2011 11:26 AM (in response to sudheerk84)Dude to performance reasons i would like to use asynchronous replcation over synchronous replications. By doing so is there any data inconsistency tissues that i will be facing ?
yes, async replication might result in data loss/inconsistencies.
Do we need to use synchronous replication when multiple nodes are writing in to teh same key and we want data correctness ?
If total consistency/correctness is a requirement for you totoal replication should be used.
-
3. Re: Can data be inconsistent when using asynchronous replication ?
mircea.markus Jul 6, 2011 11:29 AM (in response to sudheerk84)I did find this on the forum which was closely relaetd to my question and it spoke aboou versioning as well.
http://community.jboss.org/wiki/VersioningDesignDocument
We do use database versioning to ensure consistency. But my question was even after this there is a possiblility of data inconsistency because of delay in network replication.
Data versioning is not something Infinispan supports ATM. It will be added in 5.1.
IMO Transactions + Sync replication should are the best fit for you.
-
4. Re: Can data be inconsistent when using asynchronous replication ?
sudheerk84 Jul 6, 2011 11:49 AM (in response to mircea.markus)Thanks for teh reply :-)