question

DevikaS-5288 avatar image
0 Votes"
DevikaS-5288 asked SumanthMarigowda-MSFT answered

Are there any cons for creating a new ContainerClient for each request?

I have multiple containers (2) inside a blob. In that scenario, does creating a new ContainerClient (NodeJS) per request have any disadvantage?

azure-blob-storage
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SumanthMarigowda-MSFT avatar image
0 Votes"
SumanthMarigowda-MSFT answered DevikaS-5288 commented

@DevikaS-5288 Welcome to Microsoft Q&A, Thank you for posting your query here!

No, there is no disadvantage.

A container organizes a set of blobs, similar to a directory in a file system. A storage account can include an unlimited number of containers, and a container can store an unlimited number of blobs.

Additional information: Performance and scalability checklist for Blob storage

Hope this helps!

Kindly let us know if the above helps or you need further assistance on this issue.


Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What about creating a new BlobServiceClient per container? Does that have a disadvantage? Is there supposed to be only a single BlobServiceClient per Storage Account?

0 Votes 0 ·
SumanthMarigowda-MSFT avatar image
0 Votes"
SumanthMarigowda-MSFT answered

@DevikaS-5288 Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.

The maximum number of container names to retrieve per API call. If the request does not specify the server will return up to 5,000 items.

When a new container under the specified account is created, If the container with the same name already exists, a ResourceExistsError will be raised. This method returns a client with which to interact with the newly created container.

The maximum size for a blob to be downloaded in a single call, the exceeded part will be downloaded in chunks (could be parallel). Defaults to 32*1024*1024, or 32MB.

The maximum chunk size used for downloading a blob. Defaults to 4*1024*1024, or 4MB.

For more information, refer here, regarding the disadvantage are you facing any issue, If so, please let us know I would like to work closer on this issue.

Hope this helps!

Kindly let us know if the above helps or you need further assistance on this issue.


Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.