3 ms·
The value of Redis is never going to be found with a single server. It's going to be found when you use Redis to synchronize the state of multiple servers.
by falcolas 12y ago
The value of Redis is never going to be found with a single server. It's going to be found when you use Redis to synchronize the state of multiple servers.
- moe 12y agoRedis can actually be very useful on a single server, too, as a fast, robust, convenient, potentially shared datastore. Performance is usually a secondary concern in these use-cases.
- bherms 12y agoYep, for data stores (caches, etc), Redis is awesome and super fast, though not as time-tested as memcached. And all of the Redis set/list operations are super valuable. You just need to be careful once you start relying on Redis at scale for things you take for granted when you start playing around with it... For example: zunionstores on lots of large sorted sets. "O(N)+O(M log(M)) with N being the sum of the sizes of the input sorted sets, and M being the number of elements in the resulting sorted set." When you start off using it, it's awesome and super fast, but before you know it, the blocking, single-threaded architecture will crash and burn if your data scales up. Luckily we have clustering now :)
- markbnj 12y agoIt makes a great inter-process work queue as well. I don't think you have to stretch your imagination very far to find interesting single server use cases for redis.
- bkeroack 12y agoThere are better, more reliable ways to do this than redis. NSQ for example, in a reactive (or log-based) pattern. Regardless, your goal should be reducing shared state as much as possible, since synchronizing it among distributed systems is a Hard Problem(TM).
- bch 12y agoI've used Redis as bounded temporal storage for "log data" -- specifically, on an occasionally crashy Solaris box w/o capabilities to store a days worth of tcpdump data, I would pipe it to Redis w/ timeouts and have a 15-minute sliding window of data -- so when the host bit the dust, I had what I needed, stored safely. That was valuable.