Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maybe redis wasn't the best idea... #155

Open
spratt opened this issue Apr 14, 2013 · 11 comments
Open

Maybe redis wasn't the best idea... #155

spratt opened this issue Apr 14, 2013 · 11 comments

Comments

@spratt
Copy link
Member

spratt commented Apr 14, 2013

Reading up on redis, it seems that it is fast specifically because it keeps the whole DB in memory at once...which means there's a cap on DB size. So either we need to expire code (bleh), or we should switch to another db.

@bheesham
Copy link
Member

We can maybe try out Riak

@bheesham
Copy link
Member

And, it does say so in the introduction to Redis.

@spratt
Copy link
Member Author

spratt commented Apr 14, 2013

  1. We all know how much of the docs I read before I wrote the redis port.
  2. The relevant part I see is "Redis works with an in-memory dataset," which is true for all databases. There is a dataset that is in-memory, and then there is the full dataset. Redis is designed for the whole dataset to be in-memory. We could continue using it as a cache.

@spratt
Copy link
Member Author

spratt commented Apr 14, 2013

I'm really going to miss Redis' data structures.

@spratt
Copy link
Member Author

spratt commented Apr 14, 2013

This was the article I was reading recently: http://kkovacs.eu/cassandra-vs-mongodb-vs-couchdb-vs-redis

@spratt
Copy link
Member Author

spratt commented Apr 14, 2013

It also considers Riak.

@spratt
Copy link
Member Author

spratt commented Apr 14, 2013

After Redis, I like the sound of:

  1. CouchDB: "For accumulating, occasionally changing data, on which pre-defined queries are to be run."
  2. Riak: (no quote specifically for our app)

I would like MongoDB for 3, but an empty DB takes up 192Mb??

@spratt
Copy link
Member Author

spratt commented Apr 14, 2013

Riak seems to be designed for fault tolerance, which I'm not super worried about for our app right now? Maybe that would be a better selling feature for @asomayaji's suggested use case.

@bheesham
Copy link
Member

I'm indifferent. I say we should just make ports for each, and figure out which one works the best for us. They all look like good alternatives.

@spratt
Copy link
Member Author

spratt commented Apr 14, 2013

That sounds like fun. I suspect Couch and Riak are super similar.

@psimonyi
Copy link
Contributor

If it weren't a shared host, we could just have ridiculous swap...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants