Tell HN: Memcached and Redis Considered Harmful
It's 2021 and we have extremely fast key-value lookups using LevelDB/RocksDB, but we're still using RAM-based caching tools [1] [2] [3]. It's time to consider RAM-based caching harmful, and start caching with SSDs for larger datasets and lower costs. For ex: SSDB [4]
[1] https://redis.io/
[2] https://memcached.org/
[3] https://news.ycombinator.com/item?id=29532552
[4] https://github.com/ideawu/ssdb#ssdb-vs-redis
5 comments
[ 4.4 ms ] story [ 20.8 ms ] threadRedis is also a very convenient way to share a state between multiple instances of our software that need to have access to the same data.
Just like we would have some dicts/lists/sets in RAM (in the heap) during the runtime of a single instance, we have that stuff in Redis so we can share data between multiples remote processes. That's it. (And it makes sense to keep that stuff in RAM, I guess.)
We wouldn't use an SSD/long-term storage to keep heap memory of a running program, right? ;)
Aren't there better tools for this? etcd, consul, zookeeper etc.