Questions tagged [azure-storage-queues]

Windows Azure supports two types of queue mechanisms: Windows Azure Queues and Service Bus Queues. Both of which are used to provide reliable, persistent messaging between applications.

Windows Azure Queues, which are part of the Windows Azure storage infrastructure, feature a simple REST-based Get/Put/Peek interface, providing reliable, persistent messaging within and between services.

Service Bus Queues are part of a broader Windows Azure messaging infrastructure that supports queuing as well as publish/subscribe, Web service remoting, and integration patterns.

While both queuing technologies exist concurrently, Windows Azure Queues were introduced first, as a dedicated queue storage mechanism built on top of the Windows Azure storage services. Service Bus Queues, introduced with the latest release of the Service Bus, are built on top of the broader "brokered messaging" infrastructure designed to integrate applications or application components that may span multiple communication protocols, data contracts, trust domains, and/or network environments.

Common uses of Queue storage include:

  • Creating a backlog of work to process asynchronously
  • Passing messages from a Windows Azure Web role to a Windows Azure Worker role

References

374 questions
32
votes
6 answers

Choosing between .NET Service Bus Queues vs Azure Queue Service

Just a quick question regarding an Azure application. If I have a number of Web and Worker roles that need to communicate, documentation says to use the Azure Queue Service. However, I've just read that the new .NET Service Bus now also offers…
ChrisV
  • 2,213
  • 1
  • 18
  • 30
29
votes
6 answers

Passing object messages in Azure Queue Storage

I'm trying to find a way to pass objects to the Azure Queue. I couldn't find a way to do this. As I've seen I can pass string or byte array, which is not very comfortable for passing objects. Is there anyway to pass custom objects to the…
Roman
  • 4,443
  • 14
  • 56
  • 81
18
votes
1 answer

Azure Function and storage queue, what to do if function fails

I'm working out a scenario where a post a message to an Azure Storage Queue. For testing purposes I've developed a console app, where I get the message and I'm able to update it with a try count, and when the logic is done, I delete the message. Now…
Oak3
  • 943
  • 7
  • 20
17
votes
1 answer

How does WebJob QueueTrigger trigger, polling or event?

public static void ProcessMessage([QueueTrigger("queue")] string message, TextWriter log) { //processing message } How exactly this method will be triggered. Is WebJob host just poling the Storage Queue. Or Storage Queue raising new message…
Alexander S.
  • 844
  • 1
  • 13
  • 29
15
votes
1 answer

Why is the ApproximateMessageCount property on an Azure Storage queue nullable?

The title pretty much explains my question: If there are no messages in the Storage Queue, why would it not just return 0, assuming we were able to get the queue reference and make a connection? Instead, it returns null. Does it have to do with the…
Mark C.
  • 6,332
  • 4
  • 35
  • 71
14
votes
2 answers

Do Webjobs automatically renew leases on Azure Queue messages?

When Webjobs get a message from a queue on Azure Storage via QueueTrigger, it leases the message (makes it invisible). If the triggering function (of webjob) takes a long time to process the message, is this lease automatically extended? Or should I…
Nuri Tasdemir
  • 9,720
  • 3
  • 42
  • 67
12
votes
2 answers

Azure function visibilityTimeout

When i read the documentation about visibilityTimeout: https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-queue#host-json it says "The time interval between retries when processing of a message fails.". How I…
mslot
  • 4,959
  • 9
  • 44
  • 76
12
votes
2 answers

Azure Queue body is too large and exceeds the maximum permissible limit

I am getting the following error with my storage queue (NOT BLOB - I know others have seen this with the blob) when pushing the message from my c++ app to Azure Storage: The request body is too large and exceeds the maximum permissible limit. I'm…
user1112324
  • 623
  • 1
  • 7
  • 23
12
votes
1 answer

Azure storage queue message (show at specific time)

How can I add a message to Azure queue storage that will show up in the queue exactly tomorrow (after 24 h) ?
user2818430
  • 5,853
  • 21
  • 82
  • 148
12
votes
2 answers

Azure queue - can I verify a message will be read only once?

I am using an Azure queue and have several different processes reading from the queue. My system is built in a way that assumes each message is read only once. This Microsoft article claims Azure queues have an at least once delivery guarantee which…
Gilad Gat
  • 1,468
  • 2
  • 14
  • 19
11
votes
1 answer

Azure queue message priority

I have a queue in Azure storage named for example 'messages'. And every 1 hour some service push to this queue some amount of messages that should update data. But, in some cases I also push to this queue message from another place and I want this…
Bogdan Kolodii
  • 299
  • 3
  • 11
8
votes
1 answer

does multiple Azure worker role polling same Queue causes Dead Lock or Poison message

Scenario: if I've spin off multiple Worker roles or ONE Worker role with multiple threads, which polls the new messages in Azure Queue. Could someone please confirm if the this the correct design approach? The reason I would like to have many worker…
Nil Pun
  • 17,035
  • 39
  • 172
  • 294
8
votes
1 answer

Setting the VisibilityTimeout for a Message added to an Azure Queue via Azure Function Output Binding

I have a TimerTrigger function and the Output binding is a Azure Queue. The idea is that every 10 minutes the timer will run, it will look at a view in my database and iterate through any rows returned adding them to the queue as messages. Below is…
user6089428
8
votes
2 answers

Messages cannot be larger than 65536 bytes

I'm using Azure Queue to send emails. But for last time I'm getting exception about queue size limit up to 65536 bytes even after cheking the message size.
Roman Borovets
  • 818
  • 12
  • 25
8
votes
2 answers

Set nextVisibleTime in Azure Webjobs SDK

I'm using Azure Webjobs to process messages from a queue. I saw that the Webjobs SDK processes any failed message again after 10 minutes, and it if fails 5 times it moves it to the poison queue (1). Also I can see the nextVisibleTime of the message…
Anuar
  • 213
  • 2
  • 7
1
2 3
24 25