Notes for Riak from Seven Databases in Seven Weeks
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


These are my notes, scratches, and exercises while going through the Riak section of Seven Databases in Seven Weeks.

Instead of just calls through curl, I wanted to try out Riak with a client. This version uses riak-js and CoffeeScript.


The book builds Riak from source, whereas I decided to try it with homebrew. The examples in the book use port 8091, but the homebrew installation uses 8098. Also, the book assumes three nodes of Riak, but I just used the default setup with homebrew.

Set ulimit to at least 1024

ulimit -n 1024

Install riak:

brew install riak

To start the riak server:

riak start

Location of the Riak app.config:

"`brew --prefix riak`/libexec/etc/app.config"

Make sure these settings are as follows in the app.config:

  {js_source_dir, "/Users/yourname/path/to/repo"},
  {riak_search, [
                 {enabled, true}
  {riak_kv, [
    {storage_backend, riak_kv_eleveldb_backend}

Then restart the riak server:

riak restart

Install the necessary packages from npm

npm install


Learn more Riak:


The code taken frome the book comes with the following copyright/disclaimer:

Copyrights apply to this source code. You may use the source code in your own projects, however the source code may not be used to create training material, courses, books, articles, and the like. We make no guarantees that this source code is fit for any purpose.

Anything else in this repository is licensed by me under the MIT license. See LICENSE for more information.