azureservicebus

How to push the failure messages to Azure service bus Dead Letter Queue in Spring Boot Java?

做~自己de王妃 提交于 2021-01-29 10:31:21
问题 I'm using JMS Listener to read the message from the Azure topic and processing the message, Once the process completed I'm pushing back to another topic. I successfully completed functionality with help of spring documentation. Now I need to handle failure messages - Error handler. In case If we have an exception while reading or processing the message means I need to push it to the Dead letter Queue. Sample code I tried based on Spring Documentation. @Component public class Receiver {

How do I dead-letter a message with the Azure Service Bus HTTP API

て烟熏妆下的殇ゞ 提交于 2021-01-05 11:28:15
问题 I'm trying to integrate with the Azure Service Bus to perform brokered messaging. I've used the managed .NET API successfully before, but this time I need to use the HTTP API. When processing a message, if I determine that a message is poisonous (i.e. it can never be processed successfully), I want to move the message to the dead-letter queue. In the managed API, I'd call BrokeredMessage.DeadLetterAsync() which lets me specify the reasons for dead-lettering the message and moves it to the

How do I dead-letter a message with the Azure Service Bus HTTP API

非 Y 不嫁゛ 提交于 2021-01-05 11:28:03
问题 I'm trying to integrate with the Azure Service Bus to perform brokered messaging. I've used the managed .NET API successfully before, but this time I need to use the HTTP API. When processing a message, if I determine that a message is poisonous (i.e. it can never be processed successfully), I want to move the message to the dead-letter queue. In the managed API, I'd call BrokeredMessage.DeadLetterAsync() which lets me specify the reasons for dead-lettering the message and moves it to the

Is it possible to use AzureAppConfiguration together with an Azure Function ServiceBusTrigger

懵懂的女人 提交于 2021-01-04 12:31:32
问题 Today I have an Azure Function with the ServiceBusTrigger that reads values from my settings file. Like this: [FunctionName("BookingEventListner")] public static async Task Run([ServiceBusTrigger("%topic_name%", "%subscription_name%", Connection = "BookingservicesTopicEndpoint")]Microsoft.Azure.ServiceBus.Message mySbMsg, ILogger log) { But I am using Azure App Configuration with other projects in this solution and would like to store the endpoint, topic and subscriptname into the Azure App

In the Azure functions Python SDK, how do I get the number of topics for a given namespace?

风格不统一 提交于 2020-12-15 19:35:14
问题 I'm using Python 3.8 with azure-mgmt-servicebus= v. 1.0.0. I would like to get the number of topics for a given namespace. I have tried the below ... credential = ServicePrincipalCredentials(self._client_id, self._client_secret, tenant=self._tenant) sb_client = ServiceBusManagementClient(credential, self._subscription) ... topics = sb_client.topics.list_by_namespace( resource_group_name=self._resource_group_name, namespace_name=namespace ) num_topics = 0 while topics.current_page: num_topics

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

v2 Azure Function with Service Bus trigger not firing

走远了吗. 提交于 2020-12-10 15:56:30
问题 I am using Azure Functions V2 with a Service Bus trigger using 1.0.23 of the C# Functions SDK. I'm using the following approach to get secrets from KeyVault and use them within the settings of the triggers: How to map Azure Functions secrets from Key Vault automatically The function, especially when it has done nothing for a while, doesn't fire when there are messages on the subscription. If I then go to the portal and execute manually (yes, that particular execution is fired with a null