Listen to Put Event in Riak
russelldb at basho.com
Thu Nov 17 02:52:57 EST 2011
On 17 Nov 2011, at 02:59, Eric Fong wrote:
> 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
> Best Regards,
> Eric Fong
> riak-users mailing list
> riak-users at lists.basho.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the riak-users