Skip to content

ericmoritz/erl-crdt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Erlang CRDT

An experimental port of my Python CRDT project

If you don't know what a CRDT is, watch this

Usage

Currently the erl-crdt app provides an Observed-Remove set which enables elements to be removed and added concurrently.

A Concurrent add and removes favors add.

S = or_set:from_list([glenn, eric]),

% diverge
S1 = or_set:del_element(glenn, S),
S2 = or_set:add_element(shawn, S),

% merge
[eric, shawn] = or_set:to_list(or_set:merge(S1, S2)).

References

About

A Collection of Conflict Free Replicated Datatypes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages