Listen to Put Event in Riak

Russell Brown russelldb at basho.com
Thu Nov 17 02:52:57 EST 2011


On 17 Nov 2011, at 02:59, Eric Fong wrote:

> Hi
> 
> I have Riak servers A, B and C. 
> As I know, assume I put my data into Riak server A via HTTP interface, 
> I will hashed and determined to be stored in some other servers. May be finally stored into B and C.
> 
> What I want is listen to the upload event.
> And one and only one of them A, B, C kick off some external process.
> 
> Any API for that ?
> Or I should have watching processes in all A, B, C servers (will have race condition and locking problem)?
> 
> Sorry, I am new to Riak. I may miss some important components. 
> Please point that out to me. 

I think that pre/post commit hooks would satisfy this requirement. Have a look at the wiki page for more details http://wiki.basho.com/Commit-Hooks.html

Cheers

Russell

> 
> Thanks
> 
> -- 
> Best Regards,
> Eric Fong
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20111117/3b97f508/attachment.html>


More information about the riak-users mailing list