azure-queues

Azure Web Jobs - Triggered from queue - triggered or continuous?

大憨熊 提交于 2019-12-24 06:28:20
问题 I have a web job I've created and I want to deploy to azure. However I'm confused about the configuration when you create it. It's a web job that's triggered from an azure storage queue. It works fine locally. However when I go to create the web job in azure, I'm confused by the choices...my choices are Triggered or Continuous. If I choose Continuous, I get a choice single or Multi. If I choose Triggered, I'm given a choice of Scheduled or Manual. I don't want a Scheduled, and I'm not sure

how to write azure web role - worker role schedule task?

耗尽温柔 提交于 2019-12-24 02:55:13
问题 I am reaching a conflict in my azure project, I'm trying to seclude task : on every 16th of the month of .xml file form individual web site. In my project I have one web role and one worker role, I trying to seclude on every 16th of the month that the web role will create a message(connect to the site and download the .xml file), insert it to the queue storage, the worker role gets the message process it and delete the message. Suggestion anyone?? 回答1: Have you taken a look at this post -

Azure Blob and Queue Thread Safety

旧城冷巷雨未停 提交于 2019-12-23 09:22:15
问题 I need some help in understanding the thread safety in azure CloudBlobClient, CloudQueueClient and CloudBlob classes. I am developing a worker role which includes multiple independent job processors where each of these job processors read from a specific queue and write/update to some blob containers which may be the same. I want to make sure that these job processors are not stepping on each other toe. 1> How can I make sure that this is the case without using any kind of lock? If I assign a

What is the maximum length of base64 encoded string that can be added to Azure queue?

℡╲_俬逩灬. 提交于 2019-12-22 11:06:44
问题 I need to send compressed Base64 data over an Azure queue, which has a limitation of 64K. My code compresses the data and then encodes it as a Base64 string. I verify the compressed and encoded string does not exceed 64000 bytes (see encodedLen below), however, my code crashed when I tried to add a message of ~57,000 bytes . var byteString = Encoding.UTF8.GetBytes(articleDataToSend); var compressed = QuickLZ.compress(byteString, 1); var encoded = Convert.ToBase64String(compressed); var

Should I put my events inside a queue after getting them from Azure Event Hub?

被刻印的时光 ゝ 提交于 2019-12-22 04:51:04
问题 I'm currently developing an application hosted on Azure that uses Azure Event Hub. Basically I'm sending messages (or should I say, events) to the Event Hub from a Web API, and I have two listeners: a Stream Analytics task for real-time analysis a standard worker role that computes some stuff based on the received events and then stores them into an Azure SQL Database (this is a lambda architecture). I'm currently using the EventProcessorHost library to retrieve my events from the Event Hub

How does one determine if all messages in an Azure Queue have been processed?

浪子不回头ぞ 提交于 2019-12-21 20:47:23
问题 I've just begun tinkering with Windows Azure and would appreciate help with a question. How does one determine if a Windows Azure Queue is empty and that all work-items in it have been processed? If I have multiple worker processes querying a work-item queue, GetMessage(s) returns no messages if the queue is empty. But there is no guarantee that a currently invisible message will not be pushed back into the queue. I need this functionality since follow-up behavior of my workflow depends on

Azure Service Bus and Messaging Sessions

百般思念 提交于 2019-12-19 05:16:43
问题 I've been looking into Azure Service Bus Queues ( NOT Azure Storage Queues). All of the details that I have read indicate that it supports FIFO semantics, but only in the context of a "Messaging Session". The problem is that I can't seem to find any information on what exactly this is in the context of Azure. Is this a WCF construct, or something that is particular to Azure Service Bus? I assume that it does not relate to local transactions, but I am not 100% sure. Any pointers would be very

Listen to Queue (Event Driven no polling) Service-Bus / Storage Queue

允我心安 提交于 2019-12-12 11:23:12
问题 I'm trying to figure out how can I listen to an events on a queue (especially an enqueue event). Say I have a Console Application and a Service Bus Queue/Topic, how can I connect to the Queue and wait for a new message ? I'm trying to achieve this without While(true) and constant polling, I'm trying to do it more in a quite listener way something like a socket that stay connected to the queue. The reason I don't want to use polling is that I understand that its floods the server with requests

Nservicebus msmq to azure queue using gateway

*爱你&永不变心* 提交于 2019-12-12 04:42:14
问题 I'm getting an error when using Bus.SendToQueues, detailed error at end of question. I have an azure queue set up with a storage account and key and I'm trying to use Bus.SendToSites to have an on premise servicebus handler using msmq send a message to the azure site. Trying to get a gateway going, as per: http://support.nservicebus.com/customer/portal/articles/859548-the-gateway-and-multi-site-distribution, and I'm using this configuration: App.config: (Am I setting up the site correctly?)

Is there a way to dynamically determine the amount and names of queues triggered in Azure webjob during startup time?

若如初见. 提交于 2019-12-11 17:55:08
问题 I am using an Azure webjob with queue triggered functions to listen on several Azure queues. The processing method for each queue is identical (but the queues still need to be separate). I was wondering if there is a way to store the list of queue names in configuration and dynamically create functions that are triggered on those queues during startup time? I know it is possible to do this for a single queue using INameResolver, but I couldn't find a solution for multiple queues. 回答1: