What is the best pattern to handle Redis connections (both for interacting with Redis directly and indirectly through Python-RQ)?
Generally, database connections need to be closed / returned to a pool when done, but I don't see how to do that with redis-py. That makes me wonder if I'm doing it the wrong way.
Also, I have seen some performance dips when enqueuing jobs to RQ, which I've been told might relate to poor connection usage / reuse.
Basically, I'm interested in knowing the correct pattern, so I can either verify or correct what we have in our application.
Thanks a lot! If there's more information that would be helpful, let me know.