azure-servicebus-queues

How to move error message to Azure dead letter queue using Java?

拈花ヽ惹草 提交于 2021-02-17 02:50:13
问题 We are using Azure Service Bus Queues for exchanging messages between different systems. We would like to move the invalid messages to Dead Letter Queue using Java code. I am able to move the messages to the Main queue, but not to dead letter queue. I tried to give the queue name as "BasicQueue/$deadletterqueue", but I was getting the error. 回答1: There are many reasons why a message may be automatically moved to the dead letter queue by the Azure Service bus runtime, such as: The max delivery

Azure logic App - Fails to complete the message in a queue

时光总嘲笑我的痴心妄想 提交于 2021-02-10 16:22:15
问题 I have a queue and couple of Azure functions in Azure Logic App. An Azure function takes 5 minutes and when the event "Complete the message in queue" runs in logic app, it fails. Following is the output. { "status": 400, "message": "Failed to complete the message with the lock token '{the-guid}'. The lock on the message has been lost.", "source": "127.0.0.1" } It was not happening a week ago. 回答1: Lock duration of a message is configurable if you navigate to Service Bus -> Queue -> Properties

Azure logic App - Fails to complete the message in a queue

穿精又带淫゛_ 提交于 2021-02-10 16:21:15
问题 I have a queue and couple of Azure functions in Azure Logic App. An Azure function takes 5 minutes and when the event "Complete the message in queue" runs in logic app, it fails. Following is the output. { "status": 400, "message": "Failed to complete the message with the lock token '{the-guid}'. The lock on the message has been lost.", "source": "127.0.0.1" } It was not happening a week ago. 回答1: Lock duration of a message is configurable if you navigate to Service Bus -> Queue -> Properties

Azure Function Service Bus trigger fires more times than messages in the queue

末鹿安然 提交于 2021-02-05 09:42:58
问题 I have two Service Bus Queues and Azure Service Bus Queue Trigger. The function reads 1000 messages from the queue and forwards them to another (for test) When publishing to Azure (plan consumption) I get 1030+ function hits even though I only have 1000 messages in the queue. I think this has to do with the number of function instances. Q: How to process 1 unique message only once for 1 function instance? Queue message count image [FunctionName("Function1")] public static async Task Run(

Azure Servicebus Queue function trigger called twice

做~自己de王妃 提交于 2021-01-28 18:02:00
问题 I have an Azure function with a ServiceBusTrigger that is being called twice when it is deployed to Azure. It is very easy to reproduce. Just create a new ServiceBus Trigger function and add a message to the queue. Here's the code to send the message: static async Task Main(string[] args) { IQueueClient qc = new QueueClient(_sbConnString, "testing"); string data = "hello"; var msg = new Message(Encoding.UTF8.GetBytes(data)); await qc.SendAsync(msg); await qc.CloseAsync(); } Here's the

Azure Servicebus Queue function trigger called twice

≯℡__Kan透↙ 提交于 2021-01-28 17:47:22
问题 I have an Azure function with a ServiceBusTrigger that is being called twice when it is deployed to Azure. It is very easy to reproduce. Just create a new ServiceBus Trigger function and add a message to the queue. Here's the code to send the message: static async Task Main(string[] args) { IQueueClient qc = new QueueClient(_sbConnString, "testing"); string data = "hello"; var msg = new Message(Encoding.UTF8.GetBytes(data)); await qc.SendAsync(msg); await qc.CloseAsync(); } Here's the

Which .NET Azure Service Bus library should I use for queues?

假装没事ソ 提交于 2020-12-13 03:02:00
问题 Microsoft has two Azure Service Bus packages on NuGet: WindowsAzure.ServiceBus Use this for Microsoft Azure Service Bus Queues, Topics, EventHub and Relay backend operations. Microsoft.Azure.ServiceBus This is the next generation Azure Service Bus .NET Standard client library that focuses on queues & topics At first it sounds like you should pick WindowsAzure.ServiceBus . The package description is literally a command to "use this" for queues. But Microsoft.Azure.ServiceBus calls itself "the

Which .NET Azure Service Bus library should I use for queues?

时光总嘲笑我的痴心妄想 提交于 2020-12-13 03:01:10
问题 Microsoft has two Azure Service Bus packages on NuGet: WindowsAzure.ServiceBus Use this for Microsoft Azure Service Bus Queues, Topics, EventHub and Relay backend operations. Microsoft.Azure.ServiceBus This is the next generation Azure Service Bus .NET Standard client library that focuses on queues & topics At first it sounds like you should pick WindowsAzure.ServiceBus . The package description is literally a command to "use this" for queues. But Microsoft.Azure.ServiceBus calls itself "the