1
votes

I've seen a few examples online, but trying to make the best choice for replication conflict. I would like to make a server plug-in to automatically handle conflicts, where the newest document wins.

In contrast we could handle conflicts on each client, but we have both .NET and PHP clients... It just seems easier to do it as a plug-in on the server? Can anyone confirm the plug-in route may be the best route?

2

2 Answers

1
votes

Eric, RavenDB has plugin support (AbstractDocumentReplicationConflictResolver) to handle that. You can teach RavenDB how to properly resolve conflicts using your own business rules by inheriting from this and adding the resulting dll to the plugins directory.