Manipulating CRDTs inside commit hooks/mapreduces

Drew Kerrigan drew at kerrigan.io
Thu May 7 12:16:52 EDT 2015


Hi Cezary,

I've created some sample code that creates a CRDT from within a postcommit
hook: https://github.com/drewkerrigan/riak_snippets/tree/master/hooks/crdts

It should be noted however that this is not ideal usage of Riak; There's a
reason that examples of this type of behavior are not easy to find. If /
when postcommit hooks fail, you will get almost no notice that such a
failure occurred because the PUT to the bucket which has the commit hook
will return a success to the client whether or not the commit hook succeeds.

Drew Kerrigan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20150507/7e11c7bb/attachment-0002.html>


More information about the riak-users mailing list