- If a database operation is required to occur before another database operation in order to influence it, you must order the two database operations in the exact same sequence every time they are used. If not, the database operation dependent on the execution of another fails.
- If, however, the two transactional database operations have no dependencies and are independent instead, they can be ordered in any operational sequence.
- If Ditto Server receives document and CRDT diffs in multiple segments, Ditto Server waits to receive all segments before syncing the update across Small Peers.
Backend Architecture
Causally Consistent Transactions
Ditto Server’s replication engine enforces causal consistency.
The causal consistency model is the strongest consistency model that can be achieved in network-shared distributed database systems designed for continuous data availability across interconnected nodes.Â
With causal consistency, Ditto Server guarantees real-time data synchronicity between all replicas. This is because transaction operations are seen by every interconnected node in the same order, which is based on their sequence and execution time:
Was this page helpful?
⌘I