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. 

https://github.com/jbrisbin/riak-rabbitmq-commit-hooks 

Thanks! 

Jon Brisbin 
http//jbrisbin.com 

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

> From: "Eric Fong" <eri...@gmail.com>
> To: riak-users@lists.basho.com
> 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@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to