asp.net mvc - Is it dangerous for performance to provide in MVC file download as Stream Forwarding from another Stream source -
I want to provide a download link for files stored in the Bloorbug storage of the AZUR MVC web site. I do not want the user to see my Blob storage url and I also want to give my own download link to give the name of the file.
I think it can be done with passing (forwarding) section. There are so many similar questions here, for example:.
The problem I have is here: Imagine that 1000 users start downloading a file simultaneously. This will kill my server completely because the limited number of threads in the pool are correct?
I should say, the files I want to forward are about 100 MB larger, so 1 request can take about 10 minutes.
Am I right or I am not at risk? Will there be an Ascend method in MVC5 support? Thx!
Update: My blue example is here to give only some backgrounds. I actually intervene in the theoretical problem of Long Streaming methods in MVC. In your situation, Lucas, I really suggest that you have a local, temporary storage area for Blob.
Try and serve from there. This will delay the delivery of the file for the first time, but all subsequent requests will be faster (in my experience) and as a result there will be less blue storage transaction calls. It also eliminates the risk of running in throttling on blue storage account or blob. The limit of your throughput will be based on the outbound bandwidth of the vm frequency and the number of connections which can support it. I have a sample for such an approach:
Comments
Post a Comment