0

I have over 500 large image files that I need to process in my .NET Core app hosted in an Azure App Service. That said, I need to download all of the images and run them through a machine learning categorization function in my code. I currently use blob storage as my mechanism for storing the images, but downloading all those images via blob rest api is slow. Is there a better architecture in Azure that I should be making use of to greatly increase performance of processing these images? Perhaps a storage mechanism much faster than blob storage?

4

1 回答 1

0

是的,我试过在我身边。即使存储帐户与我的网络应用程序位于同一位置,下载一个 30MB 的文件也需要大约 3-6 秒。(在 VM 中,只需不到 1 秒)

我的建议:

  1. 您可以将图片压缩到一个存档文件中,然后下载。这比一个一个下载要快。

  2. 您可以使用DownloadToFileParallelAsync方法下载文件。会快一点。

  3. 可以参考官方教程从Azure存储下载大量随机数据

于 2019-07-12T02:50:24.660 回答