An HTTP-triggered function is slow on the first request after idle time. How do you fix it?
IntermediateScenarioServerless & integration (Functions, Logic Apps, Event Grid, Service Bus)
Answer
That is a cold start on a scale-to-zero plan. Move to the Premium plan with always-ready instances, or Flex Consumption with always-ready instances configured, reduce package size and startup work, and avoid heavy initialisation inside the handler.