azure-servicebus-queues

Azure Service Bus keeps throwing MessageLockLostExceptions

丶灬走出姿态 提交于 2019-12-06 03:30:12
I keep getting MessageLockLostExceptions when processing messages. I am using Microsoft.Azure.ServiceBus 3.2.0 with .NET Core 2.1. I have a queue with LockDuration set to 30 seconds already containing a number of messages to be processed. I took the very basic message-receiving tutorial code from https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-dotnet-get-started-with-queues#receive-messages-from-the-queue , which works fine. Now I want to simulate a slightly longer running message processing task (but still well within LockDuration ) by adding Task.Delay(10_000) . But

How to serialize Observables to the cloud and back

烂漫一生 提交于 2019-12-05 20:03:41
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 provider - http://rxx.codeplex.com/wikipage?title=TCP%20Qbservable%20Provider for such problems is it safe

Azure Logic App service bus message content

流过昼夜 提交于 2019-12-05 08:24:47
I have logic app that is triggered by a service bus. The message content is not usable as it is just random characters. I suspect that perhaps it needs to be parsed but it is not clear how to do this. I have the following: Not enough reputation to add an image - but screen shot from Azure "Insert_Entity": { "inputs": { "body": { "PartitionKey": "deviceID", "RowKey": "@variables('curDate')", "content": "@triggerBody()?['ContentData']" }, When I look at the data that I am getting for the "content" coming from the "@triggerBody()?['ContentData']" it looks like this: "W3sidHlwZSI6ImxvZyJ9LF...." I

ServiceBus RetryExponential Property Meanings

只愿长相守 提交于 2019-12-04 09:45:48
I'm having a hard time understanding the RetryExponential class that is used in conjunction with QueueClients (and I assume SubscriptionClients as well). The properties are listed here , but I don't think my interpretation of their descriptions is correct. Here's my interpretation... var minBackoff = TimeSpan.FromMinutes(5); // wait 5 minutes for the first attempt? var maxBackoff = TimeSpan.FromMinutes(15); // all attempts must be done within 15 mins? var deltaBackoff = TimeSpan.FromSeconds(30); // the time between each attempt? var terminationTimeBuffer = TimeSpan.FromSeconds(90); // the

How to fetch messages from an Azure Service Bus Queue in “PeekLock” mode using AMQP?

一世执手 提交于 2019-12-04 07:18:20
We're trying to consume Azure Service Bus in a Node application. Our requirement is to fetch multiple messages from a queue . Since Azure SDK for Node doesn't support batch retrieval, we decided to use AMQP. While we're able to fetch messages using Peek Messages as described here ( https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-amqp-request-response#message-operations ). What we are noticing is that as soon as messages are fetched, they are getting removed from the queue. I am wondering if anyone has an insight into how we can fetch messages in "PeekLock" mode using

Why use a QueueClient vs MessageFactory?

我们两清 提交于 2019-12-04 01:11:23
In Azure Service Bus, you can send a brokered message using QueueClient and MessageFactory . I would like to know why would you want to use one over the other. Azure Service Bus provides different way to send/receive messages. You can use the QueueClient to send and receive message to/from a queue. You can use the TopicClient to send message to a topic And you can use the SubscriptionClient to receive message from a subscription. Using MessageSender and MessageReceiver , you create sender and receiver that are entity type invariant: var factory = MessagingFactory.CreateFromConnectionString(

Communication between a WebJob and SignalR Hub

人盡茶涼 提交于 2019-12-03 12:56:49
I have the following scenario: I have an azure webjob (used to send mails) and I need to check the progress of the webjob in my web application. I am using SignalR to communicate with clients from my server. When I want to send an email, I push a message in the queue and the azure webjob does his job. The question is, how can I communicate the progress of the webjob to the client? Originally my idea was to push a message from the webjob, so the Hub could read it from the queue. Then, I would notify clients from the hub. However, I am not able to find a way to communicate the webjob and the hub

Guidance OnMessageOptions.AutoRenewTimeout

自古美人都是妖i 提交于 2019-12-03 11:51:50
Can someone offer some more guidance on the use of the Azure Service Bus OnMessageOptions.AutoRenewTimeout http://msdn.microsoft.com/en-us/library/microsoft.servicebus.messaging.onmessageoptions.autorenewtimeout.aspx as I haven't found much documentation on this option, and would like to know if this is the correct way to renew a message lock My use case: 1) Message Processing Queue has a Lock Duration of 5 minutes (The maximum allowed) 2) Message Processor using the OnMessageAsync message pump to read from the queue (with a ReceiveMode.PeekLock) The long running processing may take up to 10

Using QueueClient.OnMessage in an azure worker role

你。 提交于 2019-12-03 03:12:09
问题 I have an Azure worker role that is responsible for checking 4 service bus queues. Currently, I just the looping method to manually check the queues. while(true) { //loop through my queues to check for messages } With the Azure SDK 2.0 came the ability to listen for messages rather than polling for them. But Every example I've seen uses a console app with Console.ReadKey(). Is there a way to have the worker role sit and wait on messages too? I tried: public override void Run() {

Sending a message to a azure service bus queue in .Net Core Core using the REST API

北战南征 提交于 2019-12-02 13:39:56
问题 I want to send a message to my Azure Service Bus Queue in .Net Core but the WindowsAzure.ServiceBus Package is not compatible with .Net Core. Can anyone show me how to send a message to the queue using the REST API? 回答1: While the current client is not .NET Core compatible, the new client, that is a work in progress, is 100% compatible. The pre-release package will be available on April 3rd and the status can be tracked here. You could pull down the course code and compile it already today