Reputation: 4865
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.
Upvotes: 2
Views: 1812
Reputation: 73216
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.
Upvotes: 4