These are chat archives for RBMHTechnology/eventuate
Global-scale event sourcing and event collaboration with causal consistency
removeoperations. However they are not accessing underlying crdt directly, but via
op(id: String, operation: Any): Future[B]- my case is that I'd like to get that crdt in order to construct an operation object before applying it.
RGArray[A]- it evaluates into
Vector[A]and it offers ability to put an element on the right side of a given position. However internally that position is not stored as index in vector, but as a complex object. If I want to insert an element into it, I need to use that complex object (which is highly unintuitive), because I cannot use index from evaluated vector to compute that index indirectly. Well I can do that in the CRDT itself, but not in it's corresponding CRDTService
my case is that I'd like to get that crdt in order to construct an operation object before applying it
There is CRDTServiceOps.prepare exactly for that purpose. It is called with the operation prototype (passed as argument to
op) and the current CRDT.
prepare can return an updated operation object (see this example). This operation object is then persisted by Eventuate and applied (locally and remote) in the
Is that what you need?