Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An example of using Ripple to keep a rolling average of objects being inserted.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
README.md

Riak Rolling Average Example

Provide an example of using vector clocks and a rolling average algorithm to track the average of values in Ripple documents.

Requires a test Riak node to be running. Memory backend recommended.

Steps in our example

  • Given a DataPointDocument and a StatisticDocument
  • Set allow_multi to true on StatisticDocument
  • Resolve StatisticDocument conflicts in a meaningful way
  • Add a buch of DataPointDocuments concurrently
  • Retrieve the StatisticDocument answer for a count and rolling average of the data points
Something went wrong with that request. Please try again.