Azure Functions 429 error Too many requests

Sebastian Cocîrlă 0 Reputation points
2023-07-10T15:04:28.1333333+00:00

Hello,

We have a HTTP Trigger Azure Functions and started stumbling across 429 Too many request errors, once we upgraded our Azure Functions to the v4.

We were running some performance tests on this function, and after a specific throughput, we started receiving this error. Luckily, in an old resource group, we still had a function that was running on the v2 and did the same test on this function as well. We've compared the results experienced with the data from v2 functions and while we got 429 statuses in that version as well, they were occurring way past this throughput value of 6,000/sec and also in a smaller percentage throughout the test execution.

Based on our tests we received the following results:

v4 v2
1 million calls 1 million calls
10857 throughput / s 5242.5 throughput / s
53.62 % Error Rate ( 429 - error code ) 0 % Error Rate

The tests were executed using the same configuration of threads, ramp-up, and loops. The high throughput in the v4 test run is caused by the error rate.

The code is the same, nothing major has changed inside our function, it does the same things, and the response time is the same ( milliseconds ).

Both were running on a Consumption service plan.

The Application Insights doesn't log anything regarding this error, in the logs for the App Service Plan we can't see anything wrong, basically this error is not traced anywhere.

We are expecting high traffic on our website in the upcoming period and we need to get ready to handle the worst-case scenario.

Do you know if anything has changed in terms of rate limit or were there any hard limits imposed on the Azure functions since v4 has been released?

If so, is there any way I can increase that limit?

If any more details are required in order to troubleshoot the problem, please let me know and I can provide them.

Thanks a lot!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,924 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sedat SALMAN 14,180 Reputation points MVP
    2023-07-10T18:28:16.9733333+00:00

    Azure Functions have some limits, including for HTTP triggered functions. It's possible that you're hitting these limits.

    You can check from the following link

    https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook-trigger?tabs=python-v2%2Cin-process%2Cfunctionsv2&pivots=programming-language-csharp


Your answer

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