Mongodb and Redis on the same server

Asked

Viewed 132 times

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?

  • Mongodb, does not store in memory. From qqr form they use different doors, so rest assured.

  • 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/

1 answer

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

You are not signed in. Login or sign up in order to post.