2 ms·
Serious question: why would you use Redis as a database instead of something persistence-focused with a lot of in-memory operations like MongoDB or something? W
by tombert 3y ago
Serious question: why would you use Redis as a database instead of something persistence-focused with a lot of in-memory operations like MongoDB or something? Wouldn't one of those NoSQL stores like Mongo or Cassandra be the best of both worlds?
- ImportOllie 3y agoBecause Redis is persistent. It's an in-memory nosql store.
- nbf_1995 3y agoIt depends on the shape of your data and whether or not you need extras like pub/sub. Redis (and Redis protocol compatible databases) have rich support for HashMaps, Sets etc. Previously I've used redis-persistence as the data storage for an RBAC system (Lots of sets, lists, hashmaps, mostly flat objects). I've also heard of it as a database for online game scoring systems.