Is Azure Storage Queues completely pull based?

Kamal Rathnayake 31 Reputation points MVP
2022-05-31T23:56:22.677+00:00

I see in the doc here. https://video2.skills-academy.com/en-us/azure/service-bus-messaging/service-bus-azure-and-service-bus-queues-compared-contrasted

Azure Storage Queues are not push based.

  1. Does this mean that the message consumer has to always do polling?
  2. How does Azure Functions SDK Storage Queue trigger work? If that also does polling, is there a way to set the polling frequency etc?

Thanks!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,978 questions
Azure Queue Storage
Azure Queue Storage
An Azure service that provides messaging queues in the cloud.
105 questions
0 comments No comments
{count} votes

Accepted answer
  1. MughundhanRaveendran-MSFT 12,476 Reputation points
    2022-06-01T15:45:21.28+00:00

    Hi @Kamal Rathnayake ,

    Thanks for reaching out to Q&A forum.

    As mentioned in the documentation, Azure Storage queue is not push based. Clients/consumers will always have to consume the messages by polling the storage queue. Azure Queue storage trigger functions also consume the messages based on polling. You can set the polling frequency by using the "maxPollingInterval" property.

    "maxPollingInterval" property is set in host.json file. You can set the frequency by specifying the number of seconds/minutes. There are other properties such as batch size,timeout etc

    host.json:

    {
    "version": "2.0",
    "extensions": {
    "queues": {
    "maxPollingInterval": "00:00:02",
    "visibilityTimeout" : "00:00:30",
    "batchSize": 16,
    "maxDequeueCount": 5,
    "newBatchThreshold": 8,
    "messageEncoding": "base64"
    }
    }
    }

    Reference : https://video2.skills-academy.com/en-us/azure/azure-functions/functions-bindings-storage-queue?tabs=in-process%2Cextensionv5%2Cextensionv3&pivots=programming-language-csharp#host-json

    I hope this helps! Feel free to reach out to me if you have any queries or concerns.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.