[Unexpected timeouts observed against local Azure Function cold-starts]
See original GitHub issueSummary: Report by @toddmeinershagen in #517 of TimeoutPolicy
causing hangs when used with HttpClientFactory
Expected behavior: TimeoutPolicy
with HttpClientFactory
does not cause hangs when used with HttpClientFactory
Reported behaviour: TimeoutPolicy
with HttpClientFactory
causes hangs when used with HttpClientFactory
Steps / Code to reproduce the problem: not supplied.
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Azure Functions timeout in cold start
When an Azure Function is cold starting, it can take more than ten seconds, and the Playfab ExecuteFunction times out.
Read more >Azure Function execution speed is extremely slow and ...
Function Apps go into a "cold" state after five minutes of inactivity. When they come out of the cold state you can expect...
Read more >App settings reference for Azure Functions
Reference documentation for the Azure Functions app settings or environment variables used to configure functions apps.
Read more >How to tackle the cold start problem of Azure Function ...
The cold start of the function worker can cause a delay of up to 7–10 seconds, which is not good. And some client...
Read more >Cold Starts in Azure Functions
Probability of a cold start happening before minute X As you can see, some cold starts happen earlier than 10 minutes, some instances...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@reisenberger - I appreciate the dialog and ideas. I did try your suggestion of running the Azure function in a separate instance of Visual Studio and got the same results. However, when I published the function to the cloud and ran the client locally, it ran fine.
My guess is that there is some kind of optimization going on when running locally. The interesting thing is that the call never makes it to the function. So, whatever mechanics go on to handle the webhooks triggering do not work well in that scenario.
@toddmeinershagen Haven’t time to join you digging deeper at mo into the local Azure Function cold-start issues, unfortunately (time must go to other Polly issues), but interested what you find if you want to report back later. Thoughts were that you might see if the same issue reproduces when the Azure function is run out of (say) a different Visual Studio instance; or indeed simply run up on Azure rather than locally.