azure-queues

QueueTrigger Attribute Visibility Timeout

若如初见. 提交于 2020-01-20 06:41:45
问题 If I were to get a message from queue using Azure.Storage.Queue queue.GetMessage(TimeSpan.FromMinutes(20)); I can set the visibility timeout, however when trying to use Azure.WebJobs (SDK 0.4.0-beta) attributes to auto bind a webjob to a queue i.e. public static void ProcessQueueMessage([QueueTrigger("myqueue")] string message){ //do something with queue item } Is there a way to set the visibility timeout on the attribute? There does not seem to be an option in JobHostConfiguration().Queues.

Windows Azure PHP Queue REST Proxy Limit

折月煮酒 提交于 2020-01-15 09:22:31
问题 I am writing a job processor to dequeue from Windows Azure Queue Storage using Azure PHP SDK. The job just try to fetch 32 messages in a batch, process them, and then delete the messages from the queue, and the repeat these steps. However, for each time I run the PHP script, the errors below is throw after the loop has run for exactly 27 times: PHP Fatal error: Uncaught HTTP_Request2_MessageException: Malformed response: in /usr/share/php/HTTP/Request2/Adapter/Socket.php on line 1013 #0 /usr

How to access Azure storage queue by JavaScript

只愿长相守 提交于 2020-01-13 05:38:21
问题 For our testing purpose, we would like to access Azure storage queue directly with JavaScript instead of preparing a new web service. Is this possible? What should we do to achieve this, since I cannot find the official documentation for JavaScript API of Azure storage. 回答1: Yes, it is certainly possible. In fact, I am currently developing a service which does exactly this. Step 1: Enable CORS for Queue Service To accomplish this, first you need to enable CORS settings on your Queue Service.

Azure Service Bus Queue error: “No valid combination of account information found”

為{幸葍}努か 提交于 2020-01-05 04:16:33
问题 Trying to connect to a windows azure queue from a windows service (ie. not running in azure, just on my desktop, for now, but eventually on a self-hosted windows server). The connection string generated by the dashboard is in the following form: Endpoint=sb://MyServiceBus.servicebus.windows.net/;SharedAccessKeyName=MySasName;SharedAccessKey=***** I'm trying to initialize the CloudStorageAccount , but am receiving a format exception (as noted in the title). string str = ConfigurationManager

How to use one object to store multiple type of data

十年热恋 提交于 2019-12-25 01:54:02
问题 I am dealing to store data in azure queue storage and for that currently i have 2 data types classes as below [Serializable] public class Task1Item { public int ID { get; set; } public string Company { get; set; } ------ ------ } [Serializable] public class Task2Item { public int ID { get; set; } public string connectTo{ get; set; } public string Port{ get; set; } ------ ------ } and for inserting record to queue i am using below methods // For Task1Item CloudQueueMessage msg = new

Slow azure queue webjob performance (local dev)

折月煮酒 提交于 2019-12-24 08:09:51
问题 My webapi must perform a set of heavy operations in order to fullfil a request. To minimize processing time I am offload the "view counter increment" to a webjob. The way I am doing it currently is by enqueueing a message with userId and productId to azure queue storage at the end of each request. The webjob function triggers on new queue messages and after parsing the message it adds values (increments or adds new) to a static concurrent dictionary. I am not incrementing and writing to azure