I am developing a website to be deployed in Azure. Right now I am using an Azure Queue to send emails to users. I am checking the Queue for received messages after each 60 seconds by sleeping the current Thread.
My problem is I do not want to wait the Thread and wait for 60 seconds, instead I want to trigger the message sending functionality when the Queue actually receives a message. I found the mechanism of Service Bus Topics/Subscriptions but I want to know whether I can implement the same Subscription mechanism with Azure Queues (without using Topics/Subscriptions). Is this possible? Can an Azure Queue listen to something so it can run only when a message is received to the Queue. I certainly don't want to sleep the Thread.
Thank you.