Serverless Functions Invocation Count

Hi Team,

I implemented node mailer as a serverless function. I receive about 15-20 emails each month, which triggers the function each time an email is sent/received. So, I expect the serverless invocation to be around 20. However, the invocation statistics dashboard claims 44,000 invocations, which is hard to believe.

Furthermore, the metrics → Function Metrics has 0 invocations.

I am using Nuxt 3. If anybody can shed some light on this, that would be great.

Site name
vanascanada.netlify.app

  • Did you try Ask Netlify, our generative AI chatbot, before posting? It pulls info from Support Guides and recent solved forums posts.
    Yes.

Thank you for your time.

@pochat I’ll preface this with, I don’t work for Netlify, or with Nuxt.

Checking the documentation for Nuxt on Netlify:
https://docs.netlify.com/frameworks/nuxt/

I see mentions of things like:

Server-side rendering.
Powered by the Nitro server engine, SSR is supported automatically when you use Nuxt 3

The documentation for Nitro mentions:

  • Serverless support out-of-the-box.
  • Hybrid mode for static + serverless sites.

I’d imagine that by using Nuxt you may be using features that lean on serverless functions which are separate from those that you personally created, if so that could explain higher than expected invocations.

Or do you mean that the logs show specifically that your mail function has executed 44,000 times?

Hi @nathanmartin,

Thanks for taking the time to answer.

From your response, I understand that Nuxt uses functions by default that I do not set. I’ll review their documentation.

Thank you again.

1 Like