Distributed managed functions in Azure Static Web Apps (preview)
As requests to your APIs increase, you often want to distribute your APIs to the Azure regions getting the most demand. When you enable dynamic distribution, your API functions are automatically replicated to the regions closest to highest levels of incoming requests. For each request, Azure automatically directs traffic to the most appropriate region. Distributing your APIs reduces network latency and increases application performance and reliability of your static web app.
Distributed functions are only available on the Standard hosting plan.
Distributed functions can help reduce your network latency by up to 70%. Decreased network latency leads to improved performance and responsiveness of web applications with global audiences. Distributed functions can also improve application performance when quick response times are needed for responsive personalization, routing or authorization.
Distributed functions only apply to the production environment of your static web app.
Note
Distributed functions is not compatible with Next.js hybrid rendering applications.
Enable distributed functions
Before enabling distributed functions, make sure your static web app is under the Standard hosting plan with managed functions.
Use the following steps to enable distributed functions.
Open your static web app in the Azure portal.
From the Settings section, select APIs.
Check the box labeled Distributed functions.
Select Confirm.