Listen to Put Event in Riak
jon at jbrisbin.com
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.
----- Original Message -----
> From: "Eric Fong" <ericff at gmail.com>
> To: riak-users at lists.basho.com
> Sent: Wednesday, November 16, 2011 8:59:00 PM
> Subject: Listen to Put Event in Riak
> I have Riak servers A, B and C.
> As I know, assume I put my data into Riak server A via HTTP
> 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.
> -- 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