7 ms·
mongodb + redis instead of sql? ...because?
by shadowmint 13y ago
mongodb + redis instead of sql? ...because?
- wilsonfiifi 13y agoIMO Mongodb makes it easier to add and query file metadata and Redis is really just for session info.
- dualogy 13y agoDon't get it. You already have a Mongo, why also use Redis just for that? I mean your Mongo is in-memory too. Or do you anticipate a larger-than-RAM dataset for the MongoDB?
- wilsonfiifi 13y agoexpiring keys makes session timeout easier. also array access in mongodb isn't as versatile as with redis.
- hendzen 13y agoFYI: http://docs.mongodb.org/manual/tutorial/expire-data/ http://docs.mongodb.org/manual/tutorial/expire-data/
- wilsonfiifi 13y agoThanks for the link. I'm of the view though that redis offers better and more convenient implementation. cheers
- dualogy 13y agoInteresting, thanks!
- ExpiredLink 13y ago... because it's web scale.
- deleted 13y ago[deleted]
- pjmlp 13y ago... because it is what the cool kids use instead of what the boring enterprise guys are using.
- FraaJad 13y agobecause i don't care for errors on `random(x)/2` occasions.