减少Azure的文件上传大小 [英] Reduce File Size Upload for Azure

查看:114
本文介绍了减少Azure的文件上传大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Azure上有一个托管服务,每次我想把软件包(cspkg和cscfg文件)放进去时,总是要花很长时间.我的cspkg文件是18 MB.有没有更好的上传方法?我的想法是将图像,样式等放在Azure上的存储中,并将我的Web应用程序图像引用(src)指向存储帐户,因此我不必将这些文件包含在cspkg或类似的文件中.如果我只需要修改一行代码,而又要等待近30分钟才能完成上传,那就太麻烦了.

I Have a hosted service on Azure, every time I want to put the package (cspkg & cscfg files) it always take so long. My cspkg file is 18 MB. Is there any better way to do the upload? my thought is to put the images, style, etc in Storage on Azure and pointing my web app image references (src) to the storage account, so I don't have to include those files in cspkg, or something like that. It is just too much if I only have to modify a single line of code and but have to wait almost 30 min for the upload to be completed.

thx

推荐答案

整个部署过程包括2个步骤:将软件包和配置文件上传到Blob存储以及实际的VM调试过程.我认为您不能为减少VM调试过程的时间做太多事情,因为这是由Windows Azure控制的.但是,您可以在第一部分中进行安排,然后在部署之前将包文件上传到blob存储中,然后指定blob URL.但是,考虑到您的程序包大小为18MB,我认为大部分时间都花在了VM调试上.

The whole deployment process consists of 2 steps: Uploading package and configuration file to blob storage and actual VM commissioning process. I don't think that you can do much about reducing time for VM commissioning process as this is controlled by Windows Azure. You can however take care of the first part where you upload your package file in blob storage before deployment and then specify the blob URL. However given that your package size is 18MB, I think most of the time is being spent on VM commissioning.

关于将图像和样式放入Blob存储的方法,我认为这是正确的方法.这种方法有两个明显的好处:

Regarding your approach about putting images and styles in blob storage, I think that's the correct approach. There are two distinct benefits to this approach:

  1. 如果需要更改某些图像,您要做的就是将新文件上传到Blob存储中.您不必重新部署软件包文件.

  1. If you need to change some image, all you will have to do is upload the new file in blob storage. You don't have to redeploy your package file.

如果需要,您可以利用Windows Azure CDN交付或多或少静态的此内容.

If needed, you can take advantage of Windows Azure CDN to deliver this content which is more or less static.

这篇关于减少Azure的文件上传大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆