Why is cold starts for managed functions in Azure Static Web App so much slower than "bring your own" functions?

Roger Sæle 1 Reputation point
2025-01-08T14:35:42.3833333+00:00

We observe cold starts for managed functions in an Azure Static Web App to be very slow. When deploying the same function app to a dedicated Function App instead and linking it to the Static Web App, cold starts are much quicker. First requests when cold can take 15-30 sec for managed functions, whereas with "bring your own" it only takes around 1-3 sec. Why is this? Is it possible to reduce the cold start somehow?

You might say, just use "bring your own", but to leverage Distributed Functions (in our fully globally distributed web application) we need to stick with managed functions.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,303 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,036 questions
{count} votes

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.