8 ms·
Redis vs. Mongo DB – The battle of the NoSQL databases continues
- mcanon7 9y agoLove the sport of Redis combined with the flexibility of Mongo.
- sidegrid 9y agoSport?
- mcanon7 9y agoLove the speed and of Redis and the flexibility of Mongo.
- codedokode 9y agoI thought Redis was a cache, not a database.
- brianwawok 9y agoWhat is a cache vs a database? You can use mysql as a cache. Most people would call it a database. Really this article is dumb. I think almost never would you need to choose redis vs mongo. Redis is a weird and hard to describe product. For example you can use it as a queue over rabbitmq with celery. Or a cache with all kinds of things. But it does more. And an empty instance runs in like 3mb of ram and handles thousands of connections.
- zepolen 9y agoA database is ACID, and here is a good analysis: https://dzone.com/articles/how-acid-mongodb https://dzone.com/articles/how-acid-mongodb
- brianwawok 9y agoI strongly disagree, NoSQL databases are almost never ACID but they are almost always a database in how the term is used.
- zepolen 9y agoYou can store data in it sure. You can store data in text files too.
- pvdebbe 9y agoI thought Mongo was a cache, not a database.
- olingern 9y agoApples and tangerines.
- crack-the-code 9y agoAt my last company, we used redis both for celery as a queue, and a cache for values we needed to call often and retrieve quickly. We ALSO used Mongo, but moreso as a store for larger documents that were called less frequently. I think it's not fair to compare them directly together, they are each useful in their own specific cases.
- gshakir 9y agoMongo has a document size limit of 16MB, so 'larger documents' need to be qualified :).
- ninjazee124 9y agoIs Redis web-scale?
- kureikain 9y agoThe way I look at Redis is a service that helps to off-load main db. Obvious example is how people use it as a cache. But it has other use, such as: - Leaderboard: Redis shines when we need to store ranking data. - Geo Query: Instead of query geo spatial index directly from MongoDB. I use Redis and feed the id back into MongoDB - Track Occurence Of Event: Let's say we need to keep track state of an user - Set of data In other words, I treat Redis as a network/distributed data structure, which I can implement in the main db, but will require heavy read/write.
- gonyea 9y agoRedis vs. MongoDB, seriously? Up next: choosing to die via hornets or scorpions.
- yanivleven 9y agoLOL!!!!!!!!!!!
- lloydjatkinson 9y agoWhy do you hate redis?
- gonyea 9y agoRedis is great when used as a persistent cache for short-lived + no value data, or data that can be reproduced from another source. If your data, or queued items, have value then find a better tool. But if you're foolish enough to use it as a database... lol.
- deleted 9y ago[deleted]
- Hackthepack 9y agoCassandra takes'em both