Batch Uploading Huge Sets of Images to Azure Blob Storage

前端 未结 6 1651
抹茶落季
抹茶落季 2021-02-06 01:08

I have about 110,000 images of various formats (jpg, png and gif) and sizes (2-40KB) stored locally on my hard drive. I need to upload them to Azure Blob Storage. While doing th

6条回答
  •  孤街浪徒
    2021-02-06 01:35

    You should definitely upload in parallel in several streams (ie. post multiple files concurrently), but before you do any experiment showing (erroneously) that there is not benefit, make sure you actually increase the value of ServicePointManager.DefaultConnectionLimit:

    The maximum number of concurrent connections allowed by a ServicePoint object. The default value is 2.

    With a default value of 2, you can have at most two outstanding HTTP requests against any destination.

提交回复
热议问题