Skip to content

Conflict Resolution

broach edited this page Apr 18, 2012 · 3 revisions

Eventual Consistency and you

Riak, except in the most basic use cases, is an eventually consistent system. If you're not familiar with the concept a read of our wiki entry on the subject is in order.

To deal with conflict resolution, the Java client provides the Resolver interface which allows you to provide code to resolve sibling records returned by Riak. If you do not supply a Resolver the DefaultResolver is used, which simply throws an exception if siblings are present.

(coming soon)