阅读背景:

在Django中服务大文件(具有高负载)

来源:互联网 

I've been using a method for serving downloads but since it was not secure i decided to change that . ( the method was a link to the original file in storage , but the risk was that everyone with the link could have downloaded the file ! ) so i now serve the file via my views , that way only users with permission can download the file , but i'm noticing a high load on server while there is many simultaneous download requests for the files. here's part of my code that handles downloads for users ( Consider the file is an image ) I've been using a method for serving downloads




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: