I am building an Azure WebJob (C#) that polls an Amazon SQS queue for new messages and offloads to Azure Event Hub. I have a proof-of-concept that creates a long-polling connection (10s), processes multiple messages and sends to the Event Hub successfully.
I'm trying to determine how to set up the WebJob to run continuously. I am considering creating a TimerTrigger that fires every 10s. However, after looking at the WebJobs SDK, I'd prefer to create a custom event trigger that gets notified when there is a new message in the SQS queue. Is this possible or should I stick to the timer trigger?
I've been successful using default event triggers with Service Bus and Azure Queues but this is my first attempt at creating a trigger from AWS.