为什么各种上传方式的包上传速度差别这么大。
我用来部署的方法是
- 在 VS2013 中:上传速度很慢
- Powershell Commandlets:再次非常慢
- Azure 门户:速度极快
如果速度相差几秒钟或一两分钟,我不会抱怨,但我说的是 45MB 部署包的 10 分钟。
方法 1 和 2 在新西兰使用高速宽带需要超过 45 分钟。通过方法 3 上传仅需 30 秒。
有些事情不太对劲。
我们的网络没有问题,我也可以从其他网络模拟这个。
为什么各种上传方式的包上传速度差别这么大。
我用来部署的方法是
如果速度相差几秒钟或一两分钟,我不会抱怨,但我说的是 45MB 部署包的 10 分钟。
方法 1 和 2 在新西兰使用高速宽带需要超过 45 分钟。通过方法 3 上传仅需 30 秒。
有些事情不太对劲。
我们的网络没有问题,我也可以从其他网络模拟这个。
I think I've seen why Visual Studio takes so long to do the upload. If you start up Fiddler while the update is happening you'll see that Visual Studio is uploading the package in 65k blocks in sequence. As you're in NZ you get our wonderful high latency to US servers, so sending lots of smallish requests is not optimal.
If you use a dedicated storage explorer they're usually much more clever and if the file you're uploading is large it will use larger blocks and also upload them in parallel.
From what I've seen of Azure publishing using Visual Studio vs the Azure Portal, there seems to be no significant difference except for the time it takes to upload the package. As the original poster stated, the Portal is extremely fast; whereas, Visual Studio takes forever to upload the package. I didn't realize the difference for a long time until I tried using the Portal one day just to see how that process worked and I was floored by the difference in speed.
I'd definitely recommend using the Portal vs Visual Studio. One caveat, you seem to need to use Visual Studio the first time around to create the Azure Tools certificate. Not sure if there's a way to create it without Visual Studio.