I understand that Azure Function - Azure Storage Queue triggered functions are triggered on a polling basis.
But cant seem to find how it work for Azure Service Bus queues. Does it also follow the polling approach or has a session with the Azure Service Bus queue client that gets triggered whenever a message is sent into the queue (something like an event-driven approach)?
Please refer to the following code:
[FunctionName("ServiceBusFunction")]
public static void Run([ServiceBusTrigger("testQueueDuplicateDetection")] string myQueueItem, ILogger log)
{
log.LogInformation($"C# ServiceBus queue trigger function processed message: {myQueueItem}");
}