Listen to Put Event in Riak

Jon Brisbin jon at
Thu Nov 17 10:57:17 EST 2011

This is a situation similar to one I had in mind when I wrote the Riak -> RabbitMQ integration. Think of it as a distributed database trigger. It is a post-commit hook, as Russell mentions being the way to achieve what you're looking for, but this post-commit hooks sends out an AMQP message telling subscribers about new data coming into Riak. 


Jon Brisbin 

----- Original Message -----

> From: "Eric Fong" <ericff at>
> To: riak-users at
> Sent: Wednesday, November 16, 2011 8:59:00 PM
> Subject: Listen to Put Event in Riak

> 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.

> Thanks

> -- Best Regards,
> Eric Fong

> _______________________________________________
> riak-users mailing list
> riak-users at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the riak-users mailing list