News for hackers. Stuff that matters.
Re:Redis as a Database by tombert on Tuesday October 24, 2023 @01:43PM (#38002573)
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?
Re:Redis as a Database by nbf_1995 on Tuesday October 24, 2023 @02:32PM (#38003275)
It 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.

Re:Redis as a Database by ImportOllie on Tuesday October 24, 2023 @02:04PM (#38002894)
Because Redis is persistent. It's an in-memory nosql store.