Re: Looking for an easy cache solution based on pre-commit hook

2014-03-05 Thread Christian Dahlqvist
Hi Ivaylo, For read intensive applications a common solution is to perform the caching outside Riak, e.g. using Varnish, memcached or Redis. Often the application will be responsible for populating the cache, but either the application or Riak (through a commit hook) can be responsible for purging

Re: Looking for an easy cache solution based on pre-commit hook

2014-03-05 Thread Brian Sparrow
Hello Ivaylo, Yes, you could use a pre-commit hook for this but it's important to understand the limitations of this design. A pre-commit hook blocks the write until the hook comes back successful and then it proceeds. This is going to add latency to write operations on the bitcask backend. An alt