Does anyone use Redis before MongoDB?

I was wondering if someone is using Redis before MongoDB for a more reliable consistent level of persistence.

I understand that Redis has a virtual machine and is constantly adding new features ... but you need the flexibility of MongoDB to scale horizontally.

example: I want to use redis for session / pub / sub with nodejs and websocket in a browser, but also store data in a scalable way in a searchable archive stored in MongoDB

+4
source share
1 answer

Yes, I often use Redis as an index index before MongoDB. For example, I generate a key that I use to search for a set in Redis, then use the members of this set for Mongo queries using $ in.

+4
source

Source: https://habr.com/ru/post/1344834/


All Articles