python pyramid set throttle policy in download request -
when client request download
example.com/media/files/test.mp4
if large file 1gb 3gb, user request drop in middle. server got hanged , other user can not download file.i want set throttle bandwidth limit single user session in every request.
you should use front end web server nginx throttling:
http://nginx.org/en/docs/http/ngx_http_limit_req_module.html
python wsgi application not suitable this, specialized front end web servers can better.
Comments
Post a Comment