2 ms·
To my knowledge, Memcached really only wins when you can make use of it being multi-threaded -- have a lot of concurrent key requests. Even though Redis runs si
by thezilch 10y ago
To my knowledge, Memcached really only wins when you can make use of it being multi-threaded -- have a lot of concurrent key requests. Even though Redis runs single-threaded, it often will do more IOPs with respect to a single Memcached thread, and that's without considering that you can get even further ahead pipelining Redis requests.
To compete with Memcached's multi-core throughput, it's probably not a big deal for you to run a Redis process per core. Surely you are already running multiple memcached for higher availability, so I can't see multiple Redis procs adding much more complexity.
Of course, Redis has many more advantages. For one, I can't be bothered to ever again not have Redis data types, so Memcached just doesn't make sense in my stacks. And even a caching layer has advantages in being able to persist to disk, so I love that too about Redis.