I am planning to using ServiceBusTrigger in Azure functions. I know that under Consumption plan, functions might stop running due to inactivity after a certain period of time as mentioned here.
We deallocate resources after roughly 20 minutes of inactivity, after which your next call will be a cold start
So let's say my function app has been stopped due to inactivity. I understand that a HTTPTrigger will wake up my app. It will be slow due to cold start, but at least the delay is only as long as the cold start (few seconds assuming lightweight initialization).
Questions
How are ServiceBusTriggers handled once an app is deallocated? If a new message comes, will the function get triggered immediately? Cold start penalty is ok, but could it be more like in tens of minutes? This comment about blob triggers indicate it could take up to 10 minutes, but I am not sure if it applies to Service Bus also.
If your function app is on the Consumption plan, there can be up to a 10-minute delay in processing new blobs if a function app has gone idle.
Assuming that there could be delays in tens of minutes, could this be reduced by using Premium plan or App Service Plan with "Always On" set?