Reducing the outbound bandwidth costs for hosting files on an Azure Storage site?

I am currently running a file hosting site as a side project and I am using Azure Storage to actually store and serve the files. The big problem for me is that I would like to be able to support relatively large files that are really expensive to maintain.

According to the pricing information for Azure Outbound Data Transfer, it will cost me $ 0.087 per GB to serve files to the user. This is fine for things like images, but if the user stores something like 1GB video, it will cost me 9 cents per person who wants to download the file. Even if I try to monetize the service, I don't see how I can reasonably support these costs if the service ever becomes popular.

Does anyone have any suggestions or alternatives to reduce outbound data costs?

Edit: As I come across useful ways to cut my costs, I update the list below:

  • Use a free CDN provider like Cloudflare. Specifically for me, I have enabled CDN for files served through Azure Storage because enabling it for my entire site will result in a 100MB file size upload limit. It should be noted that Cloudflare does not cache everything , so while I am covered in images, I am still out of luck with many other types of media that users can download.

  • Compress downloaded files so that there is no bandwidth for outgoing transfers.

  • If you use cloud storage but host your site on a high bandwidth dedicated server, you can implement some kind of local cache and serve content directly from your cache, with the storage provider being backed up to skip the cache. Unfortunately this is not viable for me since I am also hosting my site on Azure and the outbound speed is spread across their entire service stack.

+3


source to share


2 answers


Are all your assets publicly available or do you have some sort of authentication in front of them? If they are publicly available, perhaps a CDN would be an option here.



0


source


You can try to cache your content on the client. For scenarios where you access static content such as photos or videos, the cache setting may prevent you from going to the server every time you need data.



0


source







All Articles