I deployed a nextjs site to Netlify on 8/31/2024 using a free plan, and have watched it use around 110,000 of these function invocations in that time, about 15,000 per day. I don’t know exactly what these calls are doing, but I thought this was at least a sign of huge web traffic, at most one function per page view. But I finally thought to install google analytics and it seems to be showing 500 invocations in the time that there were only 2 actual page views.
I suspect google is accurate here and now I really need to understand what these function invocations are doing, since I’m soon going to run out and have to start paying for them. The advantage of Netlify was to be free for low volume, but if the volume of a limited resource (function invocations) is going to be huge anyway, I need to reconsider this.
Update: I just viewed the logs and they look like this:
Sep 7, 04:23:23 PM: a2f1678e Duration: 7.51 ms Memory Usage: 189 MB
Sep 7, 04:23:25 PM: 3d25ff97 Duration: 34.11 ms Memory Usage: 189 MB
Sep 7, 04:23:38 PM: 5c632b38 Duration: 6.95 ms Memory Usage: 189 MB
Sep 7, 04:23:40 PM: 7bd32c37 Duration: 21.16 ms Memory Usage: 189 MB
Sep 7, 04:23:48 PM: e0fe5e27 Duration: 4.33 ms Memory Usage: 189 MB
Sep 7, 04:23:50 PM: b21b47f9 Duration: 37.39 ms Memory Usage: 189 MB
Sep 7, 04:23:52 PM: 0fc2b609 Duration: 27.04 ms Memory Usage: 189 MB
So one of these is running every few seconds all day long, and I don’t think that corresponds to site activity, so what is going on here?