0

I am using riak noSql database for development. I want to trigger action when record inserted in bucket. Is their any way to implement trigger in riak?

achan1989
  • 101
  • 2
  • 10

1 Answers1

3

Yes, you can. This is called a "commit hook" in Riak. According to Using Commit Hooks,

Pre- and post-commit hooks are functions that are invoked before or after an object has been written to Riak.

The link also contains details on how to write and configure commit hooks. You must be fluent in Erlang, the language Riak is written in, though.

There is also a section about hooks in the Little Riak Book.

vempo
  • 3,093
  • 1
  • 14
  • 16