Help Understanding Vercel Metrics for "Function Invocations" and "Requests"

We need clarification on the Vercel metric reports for “Function Invocations” and “Requests”.

Based on the definitions:

  • “Function Invocations” refers to “the number of times your Serverless and Edge Functions received a request (excluding cache hits).”
  • “Requests” refers to “the number of requests your deployments have received.”

Given these definitions, my assumption is that the count of Uncached Requests (802,064) specified in the “Requests” report should align with the Function Invocations count (408,321), as all uncached requests would presumably be handled by the origin servers.

Could you please confirm if my understanding is correct?
However, we are seeing a significant difference between these two values. Could you help explain the discrepancy?

Hey @khairulzamansapiee-a. Function Invocations is defined as “the number of times your Functions have been invoked.” This includes successful and errored invocations, but not cache hits.

Edge Requests refers to “the number of cached and uncached requests that your deployments have received.” Static assets and functions incur Edge Requests. So I wouldn’t expect the numbers to be the same. I hope that helps!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.