Is it possible to deploy Front end application on azure function App

Ninad Pawar 1 Reputation point
2021-02-11T18:40:11.02+00:00

Hi All,
Currently in my project, we have React front-end code deployed in Azure Web App. This front-end application calls another Java spring boot Api deployed in another App service.

Currently we are planning to replace Web Apps by Azure functions and below are some questions I've:

  1. Is it possible to get away with Front-end Web app developed in React and host it on Azure function? I know we can replace Api App by Azure function but not sure if front-end can be moved to Azure function.
  2. If yes to above question, what should be plan i shd select to minimize cold start effect but save cost compared to Web App

Thanks!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,180 questions
Azure Stack Hub
Azure Stack Hub
An extension of Azure for running apps in an on-premises environment and delivering Azure services in a datacenter.
189 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,641 Reputation points Microsoft Employee
    2021-02-12T10:49:17.71+00:00

    While it is possible to use a Function App, it would be better to either host your react app on blob storage as a static website.

    Azure Static Web Apps is a complete service that is designed for Single Page Apps which you could leverage as well, but note that this is currently in preview and hence not recommended for production scenarios.

    These options do not suffer cold start problems like Function Apps running in the Consumption Tier. But if you still require using a Function App in your scenario, prefer the Premium Plan to reduce cold start.

    0 comments No comments

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.