becomingbabyman / cause

An EDN-like CRDT (Causal Tree) for Clojure & ClojureScript that automatically tracks history and resolves conflicts.
MIT License
141 stars 8 forks source link

Post-transaction tx-data #11

Open bobby opened 4 years ago

bobby commented 4 years ago

In Datomic, the transaction result includes tx-data, which is a fully-resolved and complete version of the transaction originally submitted (i.e. with tempids resolved, transaction functions applied, maps flattened, etc.).

It would be very helpful to include something similar in the result of a CausalBase transaction, e.g. for sending on the wire to other participants with their own local versions of the CRDT.

bobby commented 4 years ago

Now that I'm thinking about this, @smothers should decide if he wants to support both op-based (CmRDT) and state-based (CvRDT) usage patterns. This issue is only helpful for the op-based side.