Mongo vs Redis: which one is better for a huge community?
-
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.