Edited to say I'm a Basho employee and did a lot of the development work on CRDTs in Riak. Also, Hi!
You can use any CRDT implementation you want from the client. You can roll your own, or you can use riak_dt, or some other library. Indeed using a 3rd party CRDT library with Riak should be trivial, since conflicts are exposed to the user. Though there aren't many out there (yet?)
Writing your own Ad Hoc merge logic is somewhat more complex. Shapiro et al describe it as "complex, and error prone" in their CRDT paper. Google's F1 paper says:
"We also have a lot of experience with eventual consistency systems at Google. In all such systems, we find developers spend a significant fraction of their time building extremely complex and error-prone mechanisms to cope with eventual consistency"
and
"Designing applications to cope with concurrency anomalies in their data is very error-prone, time- consuming, and ultimately not worth the performance gains."
Building CRDTs into Riak is an attempt to mitigate this.
I don't think CRDTs built in to Riak will "save the world" but hopefully, for a portion of application developers, or potential developers, on Riak, built in CRDTs will make data modelling easier. It will, I hope, allow these developers to focus on their application, and not conflict resolution, when working with Riak.
Built in CRDTs are a step towards maturity for EC systems, I'm pretty excited about this work and think it opens up a lot of possibilities.
If you find making a general purpose, reusable library of state based CRDTs trivial, please send Basho a CV.
Only last-write-wins registers use last-write-wins to resolve conflicts. Maps and Sets and Flags use an Add-Wins/Observed-Remove semantic based on fine grained causality tracking methods borrowed from dotted version vectors, counters are vectors of actor->count pairs. None of these types use temporal time at all.
For something like a single string register inside a Map (which is the register you refer to) a simple LWW seemed adequate. Maybe in future we can add some more complex type here, maybe with causal history + timestamp arbitration (like Riak's allow_mult=false.)
First Hacker News project listed here that I have clicked around and enjoyed for ages. Really nicely executed. With a lot of play it may well become very useful for making snap decisions.
Would like to sign up without linking an existing account, don't want to sully my social network if you do something untoward. Trust is earned.
Fair enough. That is one of the things we plan on doing soon enough, we have a list of features to get through but it will get ticked off at some point.
Saying that, I signed up anyway (to add to the feature list :D)
I really like it. It needs traction to make it useful but it is fun and could be sociable. The idea is trivial, but that is nice: everyone loves top 10s.
> So I said, narrow the focus. Your "use case" should be, there's a 22 year old college student living in the dorms. How will this software get him laid?
Extend the idea of "lemon laws" to hiring. Every new hire has a 3 month try-out period (as a contractor?) where they will be fired if it doesn't work out. If you make this point forcefully during the interview, some low-quality applicants will seek safety elsewhere rather than risk losing their job, while high quality applicants won't be deterred.
I just outsourced a project to my brother, a first in a few years. I also know a great local 3D modeler often in need of work. It is sounding like I'll need to transition into running a consultancy. Nothing new, I ran my own offshore development a few years back. Good 50% margins for a bit of marketing, sales and project management work.
I haven't had to turn work away only because I've been able to queue up projects and space them out. Oh, and because clients have been patient while I've done that.
Reading on the toilet is actually bad for your lower intestines. It can lead to health problems. You want to minimize (within reason) the time spent sitting over a hole like that.
You can use any CRDT implementation you want from the client. You can roll your own, or you can use riak_dt, or some other library. Indeed using a 3rd party CRDT library with Riak should be trivial, since conflicts are exposed to the user. Though there aren't many out there (yet?)
Writing your own Ad Hoc merge logic is somewhat more complex. Shapiro et al describe it as "complex, and error prone" in their CRDT paper. Google's F1 paper says:
"We also have a lot of experience with eventual consistency systems at Google. In all such systems, we find developers spend a significant fraction of their time building extremely complex and error-prone mechanisms to cope with eventual consistency"
and
"Designing applications to cope with concurrency anomalies in their data is very error-prone, time- consuming, and ultimately not worth the performance gains."
Building CRDTs into Riak is an attempt to mitigate this.
I don't think CRDTs built in to Riak will "save the world" but hopefully, for a portion of application developers, or potential developers, on Riak, built in CRDTs will make data modelling easier. It will, I hope, allow these developers to focus on their application, and not conflict resolution, when working with Riak.
Built in CRDTs are a step towards maturity for EC systems, I'm pretty excited about this work and think it opens up a lot of possibilities.
If you find making a general purpose, reusable library of state based CRDTs trivial, please send Basho a CV.