I have to serve very large static files to multiple clients, but some clients do not have access to all files, so my server has to check for the file permissions for each client, and I cannot use nginx or memcache to serve files directly. What would be the best approach to concurrently serve multiple clients large files (4 to 10Mb) while keeping the flask server responsive ?
Right now my files are stored on S3, is there an easy way to give the client a redirect with a one-time access key to S3 so he can download the file on S3 after I checked the permission?