Skip to content

Commit cddf50b

Browse files
Edits
1 parent 18dc701 commit cddf50b

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

articles/storage/blobs/storage-blobs-tune-upload-download-go.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: pauljewellmsft
77
ms.author: pauljewell
88
ms.service: azure-blob-storage
99
ms.topic: conceptual
10-
ms.date: 09/20/2024
10+
ms.date: 09/23/2024
1111
ms.devlang: golang
1212
ms.custom: devx-track-go, devguide-go, devx-track-go
1313
---
@@ -31,7 +31,13 @@ The following properties can be configured and tuned based on the needs of your
3131
- `BlockSize`: The maximum length of a transfer in bytes when uploading a block blob in chunks. Defaults to 4 MB.
3232
- `Concurrency`: The maximum number of subtransfers that may be used in parallel. Defaults to 5.
3333

34-
These options are available when uploading using the following methods: [UploadBuffer](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob#Client.UploadBuffer), [UploadStream](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob#Client.UploadStream), and [UploadFile](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob#Client.UploadFile). The [Upload](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blockblob#Client.Upload) method doesn't support these options, and uploads data in a single request.
34+
These configuration options are available when uploading using the following methods:
35+
36+
- [UploadBuffer](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob#Client.UploadBuffer)
37+
- [UploadStream](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob#Client.UploadStream)
38+
- [UploadFile](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob#Client.UploadFile). The
39+
40+
The [Upload](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blockblob#Client.Upload) method doesn't support these options, and uploads data in a single request.
3541

3642
> [!NOTE]
3743
> The client libraries use defaults for each data transfer option, if not provided. These defaults are typically performant in a data center environment, but not likely to be suitable for home consumer environments. Poorly tuned data transfer options can result in excessively long operations and even request timeouts. It's best to be proactive in testing these values, and tuning them based on the needs of your application and environment.
@@ -92,7 +98,12 @@ The following properties can be tuned based on the needs of your app:
9298
- `BlockSize`: The maximum chunk size used for downloading a blob. Defaults to 4 MB.
9399
- `Concurrency`: The maximum number of subtransfers that may be used in parallel. Defaults to 5.
94100

95-
These options are available when downloading using the following methods: [DownloadBuffer](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob#Client.DownloadBuffer) and [DownloadFile](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob#Client.DownloadFile). The [DownloadStream](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob#Client.DownloadStream) method doesn't support these options, and downloads data in a single request.
101+
These options are available when downloading using the following methods:
102+
103+
- [DownloadBuffer](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob#Client.DownloadBuffer)
104+
- [DownloadFile](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob#Client.DownloadFile)
105+
106+
The [DownloadStream](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/storage/azblob#Client.DownloadStream) method doesn't support these options, and downloads data in a single request.
96107

97108
#### Code example
98109

0 commit comments

Comments
 (0)