Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 1021 Bytes

consistency.md

File metadata and controls

18 lines (12 loc) · 1021 Bytes

Consistency

DualConnection consistency is controlled by com.atlassian.db.replica.spi.ReplicaConsistency.

Currently, there's no default consistency implementation. Consistency model highly depends on the database and application's needs. There's one example of the implementation for Postgres available in the integration test.

The easiest way to start is to use PessimisticPropagationConsistency.

ReplicaConsistency

Every write operation is registered by ReplicaConsistency#write method. DualConnection verifies the state of replica's consistency by calling ReplicaConsistency#isConsistent method.