Skip to content Skip to sidebar Skip to footer

Should Two Modules Use The Same Redis Connection? (i'm Working With Flask)

I'm building a Flask app that uses a Redis Queue. The code for the worker is: listen = ['default'] #redis_url = os.getenv('REDISTOGO_URL', 'redis://localhost:6379') conn = redis.f

Solution 1:

I'd say use a new connection unless you really have a good reason not to (although I can't imagine such reason)


Post a Comment for "Should Two Modules Use The Same Redis Connection? (i'm Working With Flask)"