Skip to content

Commit 675703a

Browse files
committed
latency best practices
1 parent 77c9cbf commit 675703a

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: Troubleshoot latency issues with Document Intelligence API
3+
titleSuffix: Azure AI services
4+
description: Learn troubleshooting tips, remedial solutions, and best practices to address Document Intelligence latency issues.
5+
author: laujan
6+
manager: nitinme
7+
ms.service: azure-ai-document-intelligence
8+
ms.topic: troubleshooting
9+
ms.date: 02/03/2025
10+
ms.author: lajanuar
11+
---
12+
13+
# Troubleshooting latency issues in Azure AI Document Intelligence
14+
15+
This article presents troubleshooting tips, remedial solutions, and best practices to address Document Intelligence latency issues. Your applications can encounter latency with using the Document Intelligence service. Latency refers to the duration an API server takes to handle and process an incoming request before delivering the response to the client. The time required to analyze a document varies based on its size (such as the number of pages) and the content on each page. Document Intelligence operates as a multitenant service, ensuring that latency for similar documents is generally comparable, though not always identical. Variability in latency and performance is an inherent characteristic of any microservice-based, stateless, asynchronous service, especially when processing images and large documents on a large scale. Despite continuous efforts to increase hardware capacity and enhance scalability, some latency issues can still arise during runtime.
16+
17+
> [!NOTE]
18+
> Azure AI services doesn't offer a Service Level Agreement (SLA) for latency.
19+
> The asynchronous nature of the API allows you to retrieve results for up to 24 hours after the operation is sent to our backend with the request Id returned by the POST operation. If you are unable to retrieve the result within your normal polling sequence, store the request Id and attempt at a different time before retrying. Please refer to our service page for more guidance.
20+
21+
## Check Azure region status
22+
23+
If you're experiencing latency issues, the first to check [Azure status](https://azure.status.microsoft/status) to determine whether there is an ongoing outage or issue impacting your services.
24+
25+
* All active events are listed under the `Current Impact` tab.
26+
27+
* You can also check your resource in the host region. Go to Geography → Products And Services → AI + Machine Learning → Azure AI Document Intelligence and check the status for your region:
28+
29+
:::image type="content" source="../media/azure-status.png" alt-text="Screenshot of the Microsoft Azure status page" lightbox="../media/azure-status.png":::
30+
31+
## Check file size
32+
33+
the size of the files you may be sending through the request API. The service parallelizes processing, larger files can lead to longer processing time. Please normalize your measurement as latency per page. Consider raising the issue if you see sustained periods (more than an hour) with latency per page consistently being above 15s.
34+
35+
## Check for latency in Azure Blob storage
36+
37+
Azure Storage latency is related to request rates for Azure Storage operations. In practice, request rates do not always scale so linearly, due to overhead in the client from task scheduling, context switching, and so forth. On the service side, there can be variability in latency due to pressure on the Azure Storage system, differences in the storage media used, noise from other workloads, maintenance tasks, and other factors. Finally, the network connection between the client and the server may affect Azure Storage latency due to congestion, rerouting, or other disruptions. For more information, *see* [Latency im Blob storage](/azure/storage/blobs/storage-blobs-latency).
38+
39+
## Check monitoring metrics in the Azure portal
91.4 KB
Loading

0 commit comments

Comments
 (0)