@Greyson Maddox Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
experiencing a 4-minute delay when invoking an HTTP triggered Azure Function from another Azure Function. They are sending an HTTP Post request to another function's endpoint every 5 minutes to prevent cold start issues.
Azure Functions are designed to be event-driven and can be triggered by various events, including HTTP requests. When an HTTP request is received, the Azure Function is invoked, and the code is executed. However, there can be some delay between the invocation and the first line of code being executed, which can be caused by various factors, including cold start issues, network latency, and other factors.
- Could you please enable the Application insight logs for the FunctionApp and check if there are any invocation exceptions. You can enabled the AppInsights as explained here. You can enabled the AppInsights as explained here.
- Please check the Function App detectors by navigating to the Diagnose and Solve Problems section in the Azure Portal for the Functions as shown below: You can rely on the Function Execution Performance setting:
- You can also query the FunctionLogs as shown below:
More Info here.
On a side note:
- Consider using Azure Functions Premium plan, which provides faster cold start times and improved performance for HTTP-triggered functions and it uses Perpetually warm instances to avoid any cold start.
- You can also check if using Dedicated app service plan is feasible. When running in a Dedicated plan, the Functions host can run continuously, which means that cold start isn't really an issue. You have the AlwaysOn feature to avoid the cold start.
Note: If none of the above steps help, Please share the below details over an email at AzCommunity@microsoft.com ( with subject "Attn: Naveen") and include the below details:
- Your Azure Function Name
- You Azure Function App resource URI in below format: /subscriptions/XXXXXXXXXX/resourceGroups/XXXXXX/providers/Microsoft.Web/sites/XXXXXX
- Most recent UTC time of the actual issue where you received the 4 minutes delay:
I will look at the backend logs to identify the root cause.
**
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.