A very interesting hook would be to be able to send a message to a queue 
whenever siblings are created.  With such a hook, you could have business logic 
somewhere trying to resolve the conflict. Unfortunately, that's not easy 
because siblings can be created at other places than PUT; namely when doing 
merge as part of handoff or as part of replication.  Perhaps also other places 
that I have not heard of.

Along those lines, it would also be really nice if there was a hook to 
transform values before the get_fsm/riak_client returns it's value.  Such a 
hook could do (a) uniform reconciliation/merge of siblings for certain simple 
types of data, and (b) perhaps be the place to possibly transform data into a 
document type acceptable by the client.

Kresten


On Apr 20, 2011, at 22:05 , Jon Brisbin wrote:

> 
> On Apr 20, 2011, at 3:01 PM, Mark Phillips wrote:
> 
>> Thanks, Jon. This is great stuff!
>> 
>> In case anyone is interested, I took the liberty of putting all the
>> Riak + RabbitMQ code in one section on the wiki:
>> 
>> http://wiki.basho.com/Community-Developed-Libraries-and-Projects.html#Riak-and-RabbitMQ
>> 
>> (I debated calling it the "Riak and Jon Brisbin" section but that
>> would definitely be suboptimal SEO :)
>> 
>> Feel free to add anything if I missed it.
> 
> Thanks!
> 
> FWIW- The rabbit_riak_queue project is just a POC (and a bit of a POS ;). I'd 
> hate for someone to try to use it and have it explode on them. :)
> 
> jb
> 
> 
>> 
>> Mark
>> 
>> On Fri, Apr 15, 2011 at 4:20 PM, Jon Brisbin <[email protected]> wrote:
>>> I've been carrying this evented datastore torch for a while now and been
>>> making pretty good progress in that direction. This evening I pushed a Riak
>>> postcommit hook to my github that sends updated entries to RabbitMQ using
>>> the Erlang AMQP client.
>>> https://github.com/jbrisbin/riak-rabbitmq-commit-hooks
>>> This is the other half of the equation for the custom exchange type I wrote
>>> to push RabbitMQ messages into Riak.
>>> https://github.com/jbrisbin/riak-exchange
>>> This gets me one step closer to that evented datastore Nirvana I doubt is
>>> actually possible--but you gotta have a dream, right? :)
>>> Thanks!
>>> 
>>> Jon Brisbin
>>> 
>>> http://jbrisbin.com
>>> Twitter: @j_brisbin
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> riak-users mailing list
>>> [email protected]
>>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>> 
>>> 
> 
> 
> Thanks!
> 
> Jon Brisbin
> 
> http://jbrisbin.com
> Twitter: @j_brisbin
> 
> 
> 
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to