1
I am planning a system that uses Mongodb for reading data and Redis for session sharing between PHP and Nodejs. Is there any problem having Redis and Mongodb running on the same server, since both store data in memory?
1
I am planning a system that uses Mongodb for reading data and Redis for session sharing between PHP and Nodejs. Is there any problem having Redis and Mongodb running on the same server, since both store data in memory?
2
I think there is no problem. Just leave their door different (by default it is already). I don’t know if I’m right, but Mongodb doesn’t store in memory, Memcached and Redis do. Mongo can do some operations and store in memory for a while to speed up but it has a file that is your database.
Browser other questions tagged php node.js server mongodb redis
You are not signed in. Login or sign up in order to post.
Mongodb, does not store in memory. From qqr form they use different doors, so rest assured.
– Ecil
Thanks for replying Ecil, but the mongodb documentation says the following: Mongodb uses memory Mapped files for Managing and interacting with all data. Mongodb memory maps data files to memory as it Accesses Documents. Data that isn’t accessed is not Mapped to memory. you can have a look at this link http://docs.mongodb.org/manual/faq/storage/
– Caio Silva