crdt

dealing with riak datatypes in postcommit hooks

核能气质少年 提交于 2019-12-14 03:53:19
问题 I am wanting to implement a postcommit hook for riak that decrements a counter in a map in another bucket. However I am having a bit of trouble dealing with the riak datatypes. Here is me attempting from riak console : (riak@127.0.0.1)9>{ok, C} = riak:local_client(). {ok,{riak_client,['riak@127.0.0.1',undefined]}} (riak@127.0.0.1)10>{ok, Obj} = C:get({<<"product">>, <<"default">>}, <<"1">>). {ok,{r_object,{<<"product">>,<<"default">>}, <<"1">>, [{r_content,{dict,5,16,16,8,80,48, {[],[],[],[],

Differences between OT and CRDT

蓝咒 提交于 2019-12-04 07:28:36
问题 Can someone explain me simply the main differences between Operational Transform and CRDT? As far as I understand, both are algorithms that permits data to converge without conflict on different nodes of a distributed system. In which usecase would you use which algorithm? As far as I understand, OT is mostly used for text and CRDT is more general and can handle more advanced structures right? Is CRDT more powerful than OT? I ask this question because I am trying to see how to implement a

Differences between OT and CRDT

廉价感情. 提交于 2019-12-02 14:09:59
Can someone explain me simply the main differences between Operational Transform and CRDT? As far as I understand, both are algorithms that permits data to converge without conflict on different nodes of a distributed system. In which usecase would you use which algorithm? As far as I understand, OT is mostly used for text and CRDT is more general and can handle more advanced structures right? Is CRDT more powerful than OT? I ask this question because I am trying to see how to implement a collaborative editor for HTML documents, and not sure in which direction to look first. I saw the ShareJS