I had back this problem a 2nd time 2 days ago, I don't know if it's related but I was doing iptables FW settings on the VM, I had nodeBB running, and also redis and from my computer desktop redis desktop manager connected to DB.
Then I made a mistake in iptables, blocked all redis port (even local), saying nodebb unable to connect to redis (so as redis desktop manager) then when I openned back 6379 port, all data was gone, not sure if it's related, just an information.
Redis -> Mongo
Has anyone built a redis to mondgo exporter?
Also can anyone explain the pros and cons of a redis vs mongo?
Hưng Thành Nguyễn last edited by Hưng Thành Nguyễn
@Ninja-Scott I've asked this question, seems to have no exporter for now.
Redis will store your datas in RAM - which means you should have a server with huge RAM if your forum is large. Because of storing db in RAM so the performance is incredible fast. It's faster than mongo.
Mongodb will store your datas in hardisk just like SQL servers but it's faster than SQL because of being the noSQL database. The perfomance is not fast like Redis but when the forum is much more larger you still no need to care about the size of db.
Pretty much as @Hưng-Thành-Nguyễn said, those are the main differences.
Mongo also stores some frequently accessed data in RAM, although I'm not sure of the technical details of it. Performance wise, Redis is faster, though Mongo is no slouch either.
I think Mongo has better failure recovery too, because everything is stored on the disk instead of in RAM.