I’m experiencing an unusual issue in one of my projects.
Metrics like Function Invocations, Edge Middleware, Fast Origin Transfer, Edge Requests, and Function Duration have drastically increased within a single day. My logs are getting updated every second, yet my website has very few users.
I’m unsure why this is happening. Within an hour, I’ve almost reached 43,000 requests. I’ve attached my logs and usage details for reference.
Can anyone help me identify the cause and find a solution?
Hi, CS! Welcome to the Vercel Community. We appreciate your patience
There could be multiple reasons for this spike. For example, bot or crawler activity, infinite loops in code (e.g. middleware or API routes that trigger additional requests), slow backend APIs that lead to timeouts and retries or even DDoS attacks or unwanted traffic.
Since Edge Middleware usage spiked, examine your middleware code for any unintended loops or excessive processing. This is to make sure that your middleware isn’t triggering unnecessary function calls.
Head over to your Observability tab for any additional clues.