Yea, I always use Redis for very specialized purposes.
Like offloading a shared data structure between threads / processes / machines so that I don’t have to deal with thread safety issues.
Like offloading a shared data structure between threads / processes / machines so that I don’t have to deal with thread safety issues.
In Python you don't even need a lib, dict is thread safe even in nogil.
In Python you don't even need a lib, dict is thread safe even in nogil.
Is it? https://google.github.io/styleguide/pyguide.html#218-threadi...https://github.com/python/cpython/issues/112075
Google is recommending people not rely on it because it does make dict subclasses not substitutable. It's easy enough to avoid the issue completely so in most cases you might as well do that.
Especially if there’s a chance I’d want that data to persist across restarts.
It’s one thing if I’m using a BEAM language, but otherwise I’ll usually reach for Redis.