2

So referencing this question, the top post states that the biggest concern of Redis is its scalability in terms of robust clustering. I was wondering if using Redis with Twemproxy, an open-source proxy developed my Twitter for memcache and redis, would alleviate that problem to the point where my main cache can just be Redis.

Community
  • 1
  • 1
Wiz
  • 4,165
  • 7
  • 27
  • 50

1 Answers1

4

It depends what you mean by robust clustering.

If you need a solution robust enough to support storage (and not caching), or if you consider you cannot afford to loose your cached data, then twemproxy (or any other proxy solution) is not enough. This is true for both Memcached or Redis. For this kind of clustering requirements, you will be better served by things like Couchbase, Infinispan, or even Riak, and Cassandra.

Now if you need a caching solution with automatic sharding, consistent hashing, and proper management of server eviction (or black-listing), then twemproxy works fine with both Redis and Memcached. Performance of twemproxy is excellent.

Didier Spezia
  • 63,324
  • 10
  • 166
  • 145
  • It is unadvised to use both? Redis for complex structures and memcached for the actual data caching? – Wiz Mar 11 '13 at 13:35
  • Well, it is certainly possible to use both at the same time, but usually the performance/scalability advantage of memcached over Redis does not justify the extra complexity. Redis is good enough for most caching purpose. – Didier Spezia Mar 11 '13 at 13:45
  • Is there a memcached equivalent to lists or would you have to do some string splitting with the key value pair – Wiz Mar 11 '13 at 13:53
  • There is no equivalent to the list as it is defined in Redis. Now, some list operations (but not all of them) can probably be simulated by using the append/prepend feature of memcached and a serialization format. – Didier Spezia Mar 11 '13 at 14:04