3 ms·
Unfortunately memcached is missing some features that make Redis very powerful for uses beyond a simple KV cache (for that simple cache usage neither are as imp
by stephenr 3y ago
Unfortunately memcached is missing some features that make Redis very powerful for uses beyond a simple KV cache (for that simple cache usage neither are as important, granted):
1. Replication
When using Redis for things like Session storage, a Job Queue, etc it's important that all hosts (web/app servers) see the same data, which means you either need them to all rely on one single server (which introduces a SPOF) or you need to be able to replicate the data, so that when the primary instance has an issue, a hot spare takes up the load with an existing dataset already in place.
2. Lua
This is slightly less important, but it provides a lot of power: systems like Qless (https://github.com/seomoz/qless https://github.com/seomoz/qless) use Lua to run a job queue that executes within Redis, so you get atomic writes for free, and you aren't tied to a specific application language to get a usable queue with consistent features/results.