Alternate database backends
-
The UX looks slick, and I think a more realtime real-time forum is a pretty novel idea.
The only problem is that Redis is an in-memory database, and for a forum like mine, where I want to be able to keep all of the posts, that simply will not work.
If all you're doing is a key value store then check out ueberDB which will give you a ton of database options out of the box. https://github.com/Pita/ueberDB
-
Hey varx,
We've received a bunch of feedback regarding our choice of using Redis (some positive, some negative).
Conventionally, using Redis is riskier, and to address this, we're planning to introduce several add-on plugins that allow forum data (posts and topics) to be saved in real-time to another database (i.e. couchDB, PostgreSQL, etc), while allowing Redis to drop back to a more conventional role as a cache.
Let me know if you have any other concerns
-
The UX looks slick, and I think a more realtime real-time forum is a pretty novel idea.
The only problem is that Redis is an in-memory database, and for a forum like mine, where I want to be able to keep all of the posts, that simply will not work.
If all you're doing is a key value store then check out ueberDB which will give you a ton of database options out of the box. https://github.com/Pita/ueberDB
Hi varx,
You could always persist from the slave, it's a pretty efficient way to do it. Assuming you will have a master/slave setup for your preferred DB choice, you're going to replicate, so with redis you would do the same (slaveof) and then persist there.
redis persistence:
http://dev.paperlesspost.com/blog/2011/12/21/redis-tips-persistence-only-slaves-and-the-slowlog/
http://redis.io/topics/persistence
Would be nice for these backends to be plugins and not "forced on you", i'd continue to use the redis backend
-
I'm really impressed with what I've seen so far. I'm in the same situation as the OP. Redis is kind of a deal breaker for us. I haven't looked at the code yet, so I'm not sure how much effort it would be to support different backends. In my particular case, it would be mongoDB.
-
If it helps you, I've started a plugin here:
http://try.nodebb.org/topic/161/nodebb-plugin-mongodb-mongodb-plugin
It's still in development - I haven't had the capacity lately to finish it just yet. If anybody wants to take a crack at it though that would be awesome