We have domain :
10.000 long lived " event " objects , i think about to create an actor for each of them.
Each " event " contains < 250 entities like " factgroup " .
Each factgroup contains < 6 fact entities : fact entity has 2 - long counters and boolean state that has changed in any direction.
Payload - message that change the counters in fact entity.
FactGroup must has changed atomically :
each payload usually affects all facts
state of each fact depedns on calculation result of 2 fact counters.
State of fact and counters of fact is the most important thing, so i left idea about LWWMap<FactGroup>.
Also thinked about extending AbstractReplicatedData, AbstractDeltaReplicatedData as a chance to make crdt Map of FactGroup
Does it fit to CRDT ?
Could someone suggest the right way to implement crdt ?