Mongo vs Redis: which one is better for a huge community?
-
Yay, for the necro. - I found this post to be interesting as it was something I too was also wondering. I'm considering just going MongoDB because rather not fuss around changing it later on. Has anyone seen that big of a difference or has any other input on Redis vs MongoDB?
@administrators curious you guys still on redis? I saw another older post that said 1 year was around 40mb of ram utilizing Redis. Would be interesting to see an update of that now. Also new recent thoughts on the Redis vs Mongo.
-
@Joykiller On this community forum they use MongoDB if I'm correct, for there clients they use a combination of both Redis and MongoDB (I've attempted to find it but appear to have lost it. source)
-
Oh, I'm glad you necro'd this! My opinion has changed since I've had a chance to work closer with redis and mongo. I would now recommend Mongo in all situations (it seems most others do as well). It's interface, setup, and addons are much nicer to work with then redis, and performance is on-par in most circumstances.
-
@ludam So you tried nodebb + mongo on your huge community or not ? Because i want same, have a millions pages, 50 gb data community, do not know how much RAM mongo will require for this data.
Anyone here have any idea ? -
@scottalanmiller could post details, but the mangolassi.it community uses a clustered (I believe) mongo backend for NodeBB.
-
Just for your comparison: We use nodebb with ~3 Million users and the same amount of posts... Running in a redis cluster (we wrote our own layer for that, because the node-redis doesn't support clustering). We tried mongo first, but it was not fast enough for our needs.
-
@Pramvir-Rathee said in Mongo vs Redis: which one is better for a huge community?:
@ludam So you tried nodebb + mongo on your huge community or not ? Because i want same, have a millions pages, 50 gb data community, do not know how much RAM mongo will require for this data.
Anyone here have any idea ?Redis is not for large deployments. MongoDB uses far less memory as it is not an "in memory" database. It's meant for scaling much larger than Redis is. You would use Redis for your sessions, but not for your community data.
-
@Florian-Müller said in Mongo vs Redis: which one is better for a huge community?:
Just for your comparison: We use nodebb with ~3 Million users and the same amount of posts... Running in a redis cluster (we wrote our own layer for that, because the node-redis doesn't support clustering). We tried mongo first, but it was not fast enough for our needs.
What's the community link?
-
@Pramvir-Rathee said in Mongo vs Redis: which one is better for a huge community?:
@ludam So you tried nodebb + mongo on your huge community or not ? Because i want same, have a millions pages, 50 gb data community, do not know how much RAM mongo will require for this data.
Anyone here have any idea ?While you could get by with much less, you'll want 64GB or more. Sure, MongoDB doesn't need to go all in memory, but for speed, you'll appreciate it.
-
64GB -- that is a lot of memory
We host larger databases on much less RAM (as we're using a cloud provider and high memory installs are crazy expensive)...
There is definitely a speed difference though. Navigating between pages on here takes a split second longer than a Redis database... if you want to see NodeBB fly, use Redis.
-
@julian said in Mongo vs Redis: which one is better for a huge community?:
64GB -- that is a lot of memory
We host larger databases on much less RAM (as we're using a cloud provider and high memory installs are crazy expensive)...
There is definitely a speed difference though. Navigating between pages on here takes a split second longer than a Redis database... if you want to see NodeBB fly, use Redis.
@scottalanmiller was replying to somebody talking about a 50 GB data community though.