4 ms·
Does anyone know how if python applications are affected by this? I know they can handle multiple requests per dyno, I would be interested to know if random rou
by googletron 14y ago
Does anyone know how if python applications are affected by this? I know they can handle multiple requests per dyno, I would be interested to know if random routing affects python apps too.
- regularfry 14y agoAs long as they've got a limit on the maximum amount of concurrent requests, they'll be affected. It might well not be as obvious.
- beambot 14y agoFor python / Django you can use a Procfile specifying gunicorn (rather than stock manage.py) with multiple worker threads, eg. web: gunicorn myapp.wsgi -b 0.0.0.0:$PORT -w 5 Then you will have 5 parallel "single-threaded" instances on each dyno rather than just 1. This will partially ameliorate the problem, but probably not 100%. (NOTE: This is speculation since Heroku hasn't weighed in yet)