Azure / Azure/azure-sdk-for-python
Allow for timeout via SDK/API when experiencing long response times
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 3.4k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 193
Description
**Is your feature request related to a problem? Please describe.**
When issuing requests to Azure's Computer Vision, occasionally there is a lot of latency in the response.
**Describe the solution you'd like**
In the case of long response times, we would like to use the SDK to issue a timeout for the request.
**Describe alternatives you've considered**
Unsure about other possible solutions regarding this issue
**Additional context**
I have attached graphs of both our VisionAPI Latency and Computer Vision Latency at an instance where the Latency spikes ( To clarify: the graphs shifts as time passes, so the spike being located at the beginning of the graph is not associated with a cold start)
The following graphs were generated via Datadog for reference
Also, I should note that we are executing the requests as laid out in the following documentaiton:
https://learn.microsoft.com/ja-jp/azure/ai-services/computer-vision/how-to/call-analyze-image-40?pivots=programming-language-python
Contributor guide
Assessment
This issue has not been assessed yet.