Home > Net >  Azure Function Consumption plan and Cold Start
Azure Function Consumption plan and Cold Start

Time:10-31

I have a Function App, and sometimes, I notice that a Function Api(HTTP trigger) takes longer to respond. I belive this is due to the cold start limation.

Within my Function App, I have a function which is a timer triggered for every minute.

Due to function app being triggered every 1 minute, should the cold start limation still effect my Function App?

Thanks

CodePudding user response:

When using the consumption plan, container resources are deallocated after roughly 20 minutes of inactivity, meaning that the next invocation will result in a cold start - source. So you shouldn't have sequential cold starts if you're triggering the same function app every minute.

Additionally, cold starts can still occur due to auto-scaling to handle capacity when creating a new container instance.

However, if you choose the premium plan, function apps are running continuously, or nearly continuously, avoiding cold starts with perpetually warm instances.

  • Related