Sometimes download from azure blob storage is very slow

Mattia Fravezzi 1 Reputation point
2022-04-27T20:04:36.397+00:00

When download file from blob storage sometimes it can take more than 10 minutes. What's can be the problem?

STORAGE:
Performance:Premium
Replication:Locally-redundant storage (LRS)
Account kind:BlockBlobStorage
Location:Switzerland North

FILES:
from 4mb to 60mb

CLIENT:
cordova application using "@azure/storage-blob": "12.9.0",
from Italy
connection check: done is always good (>100mb/s)

CODE:
const containerClient = await this.blobServiceClient.getContainerClient(containerParentName);
let blobs = await containerClient.listBlobsByHierarchy("/", { prefix: containerName + "/" });
for await (const blob of blobs) {
const blobClient = await containerClient.getBlobClient(blob.name);
const blobProp = await blobClient.getProperties();
const downloadBlockBlobResponse = await blobClient.download(null, null, {
onProgress: (ev) => {
........
}

METRICS :
E2E Latency very high
Server Latency normal

197070-schermata-2022-04-27-alle-215641.png})

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,933 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Luis Rodriguez 6,211 Reputation points Microsoft Employee
    2022-04-27T23:28:05.053+00:00

    Hello @Mattia Fravezzi

    Welcome to Microsoft Q&A Platform.

    End-to-end (E2E) latency measures the interval from when Azure Storage receives the first packet of the request until Azure Storage receives a client acknowledgment on the last packet of the response.

    There are many different factors that can be related, like operation size, client configuration, client CPU/memory or network path:
    https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blobs-latency#factors-influencing-latency

    I would recommend checking the article below as starting point:
    https://learn.microsoft.com/en-us/azure/storage/common/troubleshoot-latency-storage-analytics-logs

    A network capture taken at the time of the issue should help, you can look for retransmits and high response times
    If the issue requires remote assistance & collection of logs for further assistance, I request you file a support ticket if you have a support plan

    I hope this helps!

    ----------

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

    0 comments No comments

  2. Mattia Fravezzi 1 Reputation point
    2022-07-06T08:49:09.643+00:00

    I followed all points in those link, but I didn't solve my problem.
    I solved problem adding CDN at Azure storage and connecting there from my mobile application.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.