azure-servicebus-topics

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(

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 {

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

How to specify which Azure Service Bus Topic to use with MassTransit

浪尽此生 提交于 2020-06-27 16:39:51
问题 I've tried using MassTransit to publish a message to a topic named events in an Azure Service Bus. I have problem configuring MassTransit to use my predefined topic events , instead it creates a new topic named by the namespace/classname for the message type. So I wonder how to specify which topic to use instead of creating a new one. This is the code I've tested with: using System; using System.Threading.Tasks; using MassTransit; using MassTransit.AzureServiceBusTransport; using Microsoft

How to specify which Azure Service Bus Topic to use with MassTransit

蓝咒 提交于 2020-06-27 16:39:24
问题 I've tried using MassTransit to publish a message to a topic named events in an Azure Service Bus. I have problem configuring MassTransit to use my predefined topic events , instead it creates a new topic named by the namespace/classname for the message type. So I wonder how to specify which topic to use instead of creating a new one. This is the code I've tested with: using System; using System.Threading.Tasks; using MassTransit; using MassTransit.AzureServiceBusTransport; using Microsoft

How to send a message to service bus topic from .net core application

限于喜欢 提交于 2020-06-16 04:18:21
问题 I've created API using .net core application, which is used to send set of properties to the SQL DB and also one copy of the message should be sent to the azure service bus topic. As of now .net core doesn't support service bus. Kindly share your thoughts. How can I send the messages to the service bus topic using .net core application? public class CenterConfigurationsDetails { public Guid Id { get; set; } = Guid.NewGuid(); public Guid? CenterReferenceId { get; set; } = Guid.NewGuid();

Azure service Bus Exception on trye to complete message

久未见 提交于 2020-06-01 07:36:28
问题 I'm using the GitHub example to process the messages of a topic: private void RegisterSubscriptionClientMessageHandler() { _subscriptionClient.RegisterMessageHandler( async (message, token) => { var eventName = $"{message.Label}{INTEGRATION_EVENT_SUFIX}"; var messageData = Encoding.UTF8.GetString(message.Body); await ProcessEvent(eventName, messageData); // Complete the message so that it is not received again. await _subscriptionClient.CompleteAsync(message.SystemProperties.LockToken); },