Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An experiment in social graphs

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 example Add Cassandra to benchmarks. December 12, 2010
Octocat-spinner-32 lib
Octocat-spinner-32 spec Add Cassandra storage. December 12, 2010
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 friendship.gemspec
README.md

Friendship

This is an experiment in using various databases to store social graph information and perform common operations on that data. I'm mostly interested in tinkering around with various databases, data structures, and service interfaces.

This idea is rated not-production-ready, and experimental.

Take a look in examples for a benchmark and a use-case. Don't say I never did anything for you.

Protocol

friend(user, user) unfriend(user, user) friendships(user) mutual_friends(user, user) friend_of?(user, user)

Storage

Today:

  • Cassandra
  • Redis sets
  • Redis lists

Someday, maybe:

  • Memcached
  • PostgreSQL
  • Riak
  • In-memory

Investigate

  • Grape-based API
  • Request stages via EM
  • Bloom-filter storage
  • Memcached protocol
  • An Ernie service
Something went wrong with that request. Please try again.