Extremely Slow Preflight Requests

Tobias Haimerl 0 Reputation points
2024-07-12T16:51:21.1066667+00:00

We use an App Service hosting a WebApi (C# .NET 8). CORS is setup directly in Azure. This and one client application (Angular) are the only Apps inside the App Service Plan (P2v2).

Today we have massive slow downs in Preflight Requests from the Client to the API, which means around 5-30 seconds (!) And what is worse, that not all of those requests are slow, but only around 20%.

While trying to contact the support some problem solving tools show up and tell us that there is a problem with SNAT Port exhaustion. But we do not see any increase in requests in comparisson to other days.

We already did the following:

  • Redeploy Application
  • Restart App Service
  • Scale out to much more Instances as we actually need
  • App Service runs as Always On

All instances are healthy by the Health Check results. And there is nothing to see in the Health Center of our App Service.

What can we do about those issues?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,373 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,343 questions
{count} votes