News for hackers. Stuff that matters.
Re:The Redis criticism thread by tptacek on Monday December 09, 2013 @08:32PM (#6878412)
I don't pay super close attention to this stuff, but it's very obvious to me that not everyone likes Redis; in particular, the kinds of people who have problems with Mongodb tend also to have the same problems with Redis; long-term operational reliability is a big question mark with it.

For my part: on only a few occasions (mostly fuzzer farm stuff) have I ever used Redis and been happy with the decision. I usually regret using it. I always regret using it as an alternative to SQL.

Re:The Redis criticism thread by bsg75 on Monday December 09, 2013 @09:13PM (#6878544)
I would hope this is not the case, because it means the nay-sayers are careless developers, or simply internet-attention-seeking by criticizing instead of contributing.

Mongo has taken a lot of knocks in part because its write ack behavior was (initially) documented in a way that not everyone felt was sufficient, but also because it is marketed as a universal solution for RDBMS woes.

Redis has never been touted as a replacement for a primary data store, but more of a "toolbox" in some cases, or "middleware" in others. To apply the same criticisms to Redis and Mongo implies those users did not research their platform decisions at all.

Re:The Redis criticism thread by StavrosK on Monday December 09, 2013 @09:03PM (#6878510)
I don't know, I don't think it should be compared (or considered as an alternative to) MongoDB, and certainly never SQL. I use it to store cached keys, session data and similar other data that I can always regenerate. I've also had great success using it as a message queue on multiple projects.

What was your use case, and what was your experience with it?

Re:The Redis criticism thread by meritt on Monday December 09, 2013 @11:26PM (#6878962)
Agreed. If Redis is an acceptable alternative to MongoDB you're using one of the two very incorrectly.
Re:The Redis criticism thread by lmm on Tuesday December 10, 2013 @04:16AM (#6879728)
Use case: I want to store some json values against some string keys. Which would be very incorrect to use for this?
Re:The Redis criticism thread by jjirsa on Tuesday December 10, 2013 @05:18PM (#6884205)
How often are you updating the json values? 10/s? 100/s? 1M/s?

How many string keys? Millions? Billions? What happens if you lose an update?

Redis great for lots of rapid reads and moderate write speed for data that fits on a single server or can be manually sharded well (if it's straight k=>v, as you describe, that basically means your json fits in RAM; if you're using larger objects like sets/zsets/etc, it becomes a slightly different discussion), as long as your application can lose a few seconds without killing you (BGSAVE isn't instantaneous, of course).

Re:The Redis criticism thread by StavrosK on Tuesday December 10, 2013 @06:56AM (#6880174)
If the data is critical and you must keep them, both. If not, either.
Re:The Redis criticism thread by webtrill on Tuesday December 10, 2013 @06:30AM (#6880105)
MongoDB is not significantly better at any particular thing so yes, Redis can be used as an alternative for the things I may use MongoDB for. Keep a close eye on http://www.amisalabs.com
Re:The Redis criticism thread by swah on Tuesday December 10, 2013 @05:13AM (#6879887)
Redis people think it could be used instead of SQL for some designs:

http://redis.io/topics/twitter-clone

I want to use it in a small project so I can learn the design patterns associated with key-value stores. I'm sure there are good and bad things about using Redis vs Postgres.

But it has to hold my data, so... does it hold my data or not? I'm talking about single box stuff here, of course.

(Of course, I'll just use it and find out myself).

Re:The Redis criticism thread by StavrosK on Tuesday December 10, 2013 @06:55AM (#6880173)
That's supposed to showcase redis' features, not to tell you that you should dump Postgres for redis.
Re:The Redis criticism thread by bsg75 on Tuesday December 10, 2013 @11:09AM (#6881477)
Which is a mistake a lot of developers make - trying to replace one data store for another wholesale, and then being surprised when problems arise.
Re:The Redis criticism thread by swah on Tuesday December 10, 2013 @07:22PM (#6884959)
But why not?

Is all data in a database that important? Maybe alternative databses would generate new webapp patterns, like dynamic languages do.

Re:The Redis criticism thread by mtrimpe on Tuesday December 10, 2013 @02:31AM (#6879450)
Anecdotes don't make data but I dislike Mongodb but love Redis.

Mongodb seems like a solution that was optimized for a certain performance sweet spot that, post-SSD and huge RAM, hardly anybody ever really encounters and 99% of the times it's used you would be better off with Postgres.

Redis on the other hand hits a (probably permanent) sweet spot of ultra-high performance one level of abstraction lower than your usual database; which is a use case everyone trying to saturate metal and squeeze out the last bit of performance on a minimal budget has.

Re:The Redis criticism thread by crdoconnor on Monday December 09, 2013 @09:57PM (#6878733)
As an alternative to SQL it's pretty awful (it's explicitly not ACID, for one).

As an alternative to an in-memory cache or (occasionally) a DB de-normalization, on the other hand, it works amazingly well for me.

I see the persistence is basically just a backup that helps your system get back up to speed quickly after a crash or systems' restart. It's not something that should ever be treated as reliable.

I wonder how many people who use it under this or similar use cases have an issue with it.

Re:The Redis criticism thread by seiji on Monday December 09, 2013 @08:48PM (#6878470)
What went wrong? What's the Redis K/V model for it being used as a fuzzer farm data thing?