135 points · by sumitkumar · 12y ago · 22 comments
http://www.bloom-lang.net/calm/
"Informally, a block of code is logically monotonic if it satisfies a simple property: adding things to the input can only increase the output. "
http://db.cs.berkeley.edu/papers/cidr11-bloom.pdf
" A sufficient condition for eventual consistency is order independence ..."
Basically, your storage has container types ("T"). A list, a set, a dictionary, etc. Container types can be split and added together in a distributed fashion ("R" and "D").
The "C" in CRDT stands for "Convergent and Commutative" to imply your distributed operations can obtain the same value when merged.
Quick example: If you have a node with a key pointing to value (set) [a, b, c] and another node with the same key but different value [c, e, f], then when the nodes communicate, they can do a set union for the actual result of [a, b, c, e, f]. Keys can keep a running log of recent operations to clean up the global result too (like: [c, e, (recently deleted f)], so on merge, if the other list has f, it would be deleted instead of re-added).
Before CRDTs were a thing, Bob made state box and it's very easy to understand. Give the README a read to understand more basics: https://github.com/mochi/statebox
At the surface they sound like something vaguely resembling an abelian group (+/- inverses), but the conflict resolution stuff is the heart of it I'd guess.
http://research.microsoft.com/apps/video/default.aspx?id=153...
> supports anything from a minimum of three servers to thousands
Sorry, you don't run Paxos on thousands of servers. Typical Paxos cluster sizes are 5-7. The algorithm would never converge if you did run it on thousands of servers.
Sounds like Redis?