Skip to content

Instantly share code, notes, and snippets.

@PharkMillups
Created October 19, 2010 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PharkMillups/634439 to your computer and use it in GitHub Desktop.
Save PharkMillups/634439 to your computer and use it in GitHub Desktop.
07:14 <hackeron> how does riak compare to couchdb?
07:45 <justinsheehy> hackeron: couchdb is a local document database with very easy
replication and is thus very well-suited to things like offline applications
07:45 <justinsheehy> ications
07:46 <justinsheehy> hackeron: riak is a distributed system that allows you to get
more throughput or capacity or availability just by adding hosts
07:46 <justinsheehy> hackeron: they do have some things in common, such as very
easy-to-use HTTP interfaces -- but if you're looking for the differences, that's a start
07:53 <hackeron> justinsheehy: thanks, in my application, I would like
all nodes to have the full copy of the database -
so if I set up riak in this way, what would be the
differences/advantages to couchdb?
07:53 <hackeron> as I understand riak recovers from network downtime just as well as couchdb?
07:56 <justinsheehy> hackeron: it depends on why you want that, and your overall
operational model. both riak and couchdb are able to handle outages between nodes,
but in a very different way.
07:58 <justinsheehy> I won't be on here for more than another few min, but can try to help.
07:59 <hackeron> justinsheehy: I'm working on a linux based survaillance
system (demo here: demo1.xanview.com) - basically there is a limit of
about 16 cameras per host and I have some installations with 40
cameras or more - so the idea is if there is a copy of the database on all
hosts and all hosts are independent, each can record their own videos/events
independently but you can access all event details from any host
08:00 <hackeron> justinsheehy: so what looks good in couchdb is the ability for any host to
go offline and work independently and then be brought up to date when it's back - but I
understand I can
do that with riak, and gain additional flexibility and links and various other goodies?
08:01 <justinsheehy> hackeron: I can see either riak or couchdb working out for that.
you intend to have enough space on every host for all of the data?
08:01 <hackeron> justinsheehy: not all of the data, but for the database sure -
the documents will store thumbnails and a filepath to the videos
08:02 <hackeron> but the point is if one hosts goes down, it's videos wont be viewable,
but you still see thumbnails and the interface
08:03 <justinsheehy> hackeron: honestly, I think either one could work fine for what you
describe. I'd say to play with both and decide based on which operational model and data
model works out better for your overall needs.
08:04 <justinsheehy> okay, I have to run now. kids are waiting for me. back on later,
or always on the mailing list eventually.
08:04 <hackeron> ok, thanks :) - enjoy the kids
08:04 <justinsheehy> thanks, I will.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment