Hi All,
I am new to RavenDB and would like to request some help regarding the
Replication and Conflict management in RavenDB.
I setup two instance of RavenDB in my machine (with different port
numbers) and configured replication between these two. Now I did some
document update and purposefully created a conflict as I wanted to
know how to manage the conflict.
Looking at different blogs and posts, I came to know that I could do
this by catching the exception when I read some records. Please see
page
http://ravendb.net/docs/server/bundles/replicationconflicts.
With this approach I will be able to resolve conflicts only when I
read the conflicting record and system raises the exception.
May I ask your help to understand whether I could handle the conflict
in such a way that my client application get a notification whenever a
conflict is created in the DB? May be something like, DB raising an
event when it encountered a conflict and client listening to that
event.
The other approach I have in mind is to periodically go through each
document available in my DB and resolve any conflict manually using
code similar to what is there in the above provided link. But, I am
concerned about the performance implications this might have
considering my database may grow rapidly.
Any help will be appreciated.
Thanks in advance,
Kiran PV Uthaman