How are the metrics "Requests in Application Queue" and "HTTP queue length" measured?

John K 6 Reputation points
2022-06-27T09:18:49.297+00:00

Question 1:

At the App Service Plan level, there is a metric called "HTTP queue length". And on the App Service level there is a different metric called "Requests in Application Queue".

I haven't been able to find any official information about what the difference between them are. Are they just the same thing under two different names?

Question 2:

Exactly how is this being measured. Based on my understanding, the queueing of HTTP requests is implemented by each web server, right? So if I run my app service in two instances, both instance will maintain it´s own HTTP request queue. So does that mean the App Service are monitoring these values on each instance and summing them up?

From this page, I can see that Kestrel offers this metric as well. Is that what ends up being used by Azure, or is it getting measured at a different point as well?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,931 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 26,056 Reputation points Microsoft Employee
    2022-06-29T03:16:29.557+00:00

    The doc you're looking for @John K is Monitor apps in Azure App Service > Understand metrics. There a table lists the definitions of the of two metrics.

    Requests In Application Queue: The number of requests in the application request queue.
    Http Queue Length: The average number of HTTP requests that had to sit on the queue before being fulfilled. A high or increasing HTTP Queue length is a symptom of a plan under heavy load.

    Requests Queue gives you the current number of requests the app service is processing whereas the HTTP Queue Length gives the average of those requests being held in the queue on the service plan.

    1 person found this answer helpful.