azure-storage-queues

Azure WebJob QueueTrigger Retry Policy

泪湿孤枕 提交于 2019-12-24 04:26:11
问题 I would like to have my queue retry failed webjobs every 90 minutes and only for 3 attempts. When creating the queue i use the following code CloudQueueClient queueClient = storageAccount.CreateCloudQueueClient(); IRetryPolicy linearRetryPolicy = new LinearRetry(TimeSpan.FromSeconds(5400), 3); queueClient.DefaultRequestOptions.RetryPolicy = linearRetryPolicy; triggerformqueue = queueClient.GetQueueReference("triggerformqueue"); triggerformqueue.CreateIfNotExists(); However when simulating a

Azure function, flexible test and production queue names

感情迁移 提交于 2019-12-23 03:45:16
问题 How can I design my Azure Function hosting for flexible test/production queue isolation? I am planning to write 6 precompiled Azure Functions in C# packaged as single DLL and have yet to to decide if I will use WebJobSdk function annotation or multiple .json config files. My 6 Azure functions will only have input bindings and all will be triggered via storage queues. I dislike the idea of hardcoding queue names in source code as method attribute strings but I understand that INameResolver

Passing object messages in Azure Queue Storage

别等时光非礼了梦想. 提交于 2019-12-17 15:49:09
问题 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 Queue? Thanks! 回答1: You can use the following classes as example: [Serializable] public abstract class BaseMessage { public byte[] ToBinary() { BinaryFormatter bf = new BinaryFormatter(); byte[] output = null; using (MemoryStream ms = new MemoryStream()) { ms

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

萝らか妹 提交于 2019-12-17 13:54:09
问题 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 I'm trying to port my code to an Azure Function. One thing that seems to be very different is, when the Azure Function is called, the message is deleted from the queue. I find it hard to find any documentation on this specific subject and I feel I

Azure Queues - Functions - Message Visibility - Workers?

余生长醉 提交于 2019-12-13 15:05:35
问题 I have some questions regarding the capabilities regarding Azure Queues, Functions, and Workers. I'm not really sure how this works. Scenario: q-notifications is an queue in an Azure storage account. f-process-notification is a function in Azure that is bound to q-notifications. Its job is to get the first message on the queue and process it. In theory when a message is added to q-notifications, the function f-process-notification should be called. Questions: Does the triggered function

Azure storage queues - create_queue - getting 'binascii.Error: Incorrect padding'

早过忘川 提交于 2019-12-13 07:18:05
问题 EDIT: Where can I find my "user" and "password" for my storage account in Azure ? (see below). I simply try to create a queue with the python sdk in python3.4 but with this code: from azure.storage import QueueService q = QueueService("user", "password") q.create_queue('testqueue') I get: Traceback (most recent call last): File "new.py", line 4, in <module> q.create_queue('testqueue') File "/usr/local/lib/python3.4/dist-packages/azure/storage/queueservice.py", line 151, in create_queue

Microsoft.WindowsAzure.Storage update to V8.2.1.0 has broken my code

谁都会走 提交于 2019-12-12 21:31:57
问题 I've created a WebJob that places items in a queue, this process worked perfectly well until I updated Microsoft.WindowsAzure.Storage to v8.2.1.0 and I'm now getting this error 'Invalid storage account 'devstoreaccount1'. Please make sure your credentials are correct.' It was working perfectly well until the update, is this an issue? whats the fix? 回答1: According to this article, you could find: The Client Library uses a particular Storage Service version. In order to use the Storage Client

Azure Queue Storage: Send files in messages

牧云@^-^@ 提交于 2019-12-12 10:39:34
问题 I am assessing Azure Queue Storage to communicate between two decoupled applications. My requirement is to send a file (flat file, size: small to large) in the queue message. As per my reading an individual message in a queue cannot exceed beyond 64KB, so sending a file of variable size in the message is out of question. Another solution I can think of is using a combination of Queue Storage and blob storage, i.e. in the queue message add a reference to the file (on blob storage) and then

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:

How to serialize Observables to the cloud and back

╄→尐↘猪︶ㄣ 提交于 2019-12-10 10:04:16
问题 I need to split processing sequence (like in this question How to organize sequence of data processors with .net RX) into several computation units in Azure environment. The idea is to serialize Observable sequence to Azure Queues(or Service Bus) and to deserialize it back. If producer or consumer is failed other party should be able to continue producing/consuming. Could anyone suggest an elegant way to do so and what to use (Azure Queues or Service Bus)? Has anyone used TCP Observable