3 ms·
Except people don't only use Redis for caching or having a fast key-value database. Redis is also a very convenient way to share a state between multiple insta
by enz 5y ago
Except people don't only use Redis for caching or having a fast key-value database.
Redis 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? ;)
- digianarchist 5y ago>Redis 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. Aren't there better tools for this? etcd, consul, zookeeper etc.
- enz 5y agoI have the feeling (I might be wrong) that etcd, etc., would be more suited for long-lived state/data. What we need is a pretty short-lived shareable state. The data is very transient.