Share via

Queue time between request sent to function to when function picks it up

Crystal Li 0 Reputation points
2024-08-21T17:47:16.6233333+00:00

I am trying to get the time between when someone sends a request to the function and when a function is able to pick it up, so like a queue time between the request sent timestamp and request received timestamp

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Pinaki Ghatak 5,695 Reputation points Microsoft Employee
    2024-08-23T12:34:40.1266667+00:00

    Hello @Crystal Li

    To calculate the queue time between when a request is sent to the function and when the function picks it up, you can subtract the request received timestamp from the request sent timestamp.

    The result will give you the time it took for the function to pick up the request after it was sent. However, it's important to note that the request received timestamp may not always be available or accurate, depending on how the function is implemented.

    Additionally, the queue time may be affected by various factors such as network latency, function load, and processing time.

    If you have access to the logs or monitoring data for your function, you can use that information to calculate the queue time more accurately.

    For example, in Azure Functions, you can use Application Insights to track the request sent and received timestamps, and calculate the queue time using the custom metrics feature.

    Let me know if you have any further questions or if there's anything else I can help you with.


    I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.