Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to send azure queue messages to an endpoint

Is it possible to send azure queue messages to an endpoint url?

like image 371
mahesh sharma Avatar asked Apr 05 '16 07:04

mahesh sharma


People also ask

What is the difference between Azure storage queue and Service Bus queue?

Storage queues provide a uniform and consistent programming model across queues, tables, and BLOBs – both for developers and for operations teams. Service Bus queues provide support for local transactions in the context of a single queue.


2 Answers

You could add a simple webjob with a QueueTrigger and call your endpoint from that.

public static void ProcessQueueMessage([QueueTrigger("queue")] string message,
        TextWriter log)
        {
            //call your endpoint and send "message" here
        }
like image 64
Attila Szasz Avatar answered Oct 20 '22 06:10

Attila Szasz


Is it possible by azure queue to send messages on specific endpoint url?

To answer your question, No, an Azure Queue can't send message to a specific endpoint URL. An Azure Queue is simply a message store. You can send messages to a queue and it will reliably store the messages till the time they expire or you delete them.

However there are many ways by which you can get the message sent to an endpoint URL. As mentioned by @atika in his answer and @Aravind in his comments, you can use WebJobs or Functions. Essentially the idea is that there's someone (a WebJob or a Function) that is listening on the queue by constantly polling the queue and once it finds a message, it can send the message to an endpoint specified by you. Do keep in mind that WebJobs or Functions need to constantly poll the queue, fetch the message and take some action on that message based on how you code for it.

like image 40
Gaurav Mantri Avatar answered Oct 20 '22 06:10

Gaurav Mantri