azureservicebus

azure service bus queue with multiple listeners / competing consumers with queue

前提是你 提交于 2020-08-24 06:57:25
问题 Theoretically it looks like azure service bus queues is one to one with respect to message and receiver. Just wanted to know if it's possible to have more than one listeners to a queue. If it is 1:1, does it mean to realize competing consumers pattern we cannot use queues, and topics is the only option? 回答1: There is a big difference between queues and topics: with queues, each message is picked up by only 1 consumer . With a topic, every consumer that subscribed to the topic will get each

Azure Service Bus subscription.close() not working as intended

拟墨画扇 提交于 2020-08-10 18:56:07
问题 I have a scaled out application, where each instance connects to a azure service bus subscription with the same name. The end result being that only a single instance gets to act on any given message because they are all listening to the same subscription. Occasionally the application needs to place an instance into an idle state (service fabric ActiveSecondary replica). When this occurs, I need to close the subscription so that this instance no longer receives messages. If there were 2

Defer message in azure function V2: The lock supplied is invalid

那年仲夏 提交于 2020-08-09 16:03:45
问题 In my azure function, at some point I would like to defer my message. But if I do, I get an exception: [7/30/2020 5:59:02 PM] Message processing error (Action=Complete, ClientId=MessageReceiver1UserCreated/Subscriptions/MySubscription, EntityPath=UserCreated/Subscriptions/MySubscription, Endpoint=xxxxxxxxxxx.servicebus.windows.net) [7/30/2020 5:59:02 PM] Microsoft.Azure.ServiceBus: The lock supplied is invalid. Either the lock expired, or the message has already been removed from the queue,

Defer message in azure function V2: The lock supplied is invalid

本秂侑毒 提交于 2020-08-09 16:02:18
问题 In my azure function, at some point I would like to defer my message. But if I do, I get an exception: [7/30/2020 5:59:02 PM] Message processing error (Action=Complete, ClientId=MessageReceiver1UserCreated/Subscriptions/MySubscription, EntityPath=UserCreated/Subscriptions/MySubscription, Endpoint=xxxxxxxxxxx.servicebus.windows.net) [7/30/2020 5:59:02 PM] Microsoft.Azure.ServiceBus: The lock supplied is invalid. Either the lock expired, or the message has already been removed from the queue,

How to peek the deadletter messages

风流意气都作罢 提交于 2020-07-20 04:50:28
问题 It is very hard to find some good documentation on getting all the messages in a deadletter queue and getting to take a peek at them. I have an Azure Servicebus Queue and everything I can find is for Azure Servicebus Topics. Can someone help me with a quick guide? 回答1: Dead letter queue is a secondary sub-queue where the poison messages are moved to. In case of Azure Servicebus Queue the standard path for DLQ is queuePath/$DeadLetterQueue . So you need to have another queueClient to read the

How to peek the deadletter messages

落爺英雄遲暮 提交于 2020-07-20 04:50:03
问题 It is very hard to find some good documentation on getting all the messages in a deadletter queue and getting to take a peek at them. I have an Azure Servicebus Queue and everything I can find is for Azure Servicebus Topics. Can someone help me with a quick guide? 回答1: Dead letter queue is a secondary sub-queue where the poison messages are moved to. In case of Azure Servicebus Queue the standard path for DLQ is queuePath/$DeadLetterQueue . So you need to have another queueClient to read the

Azure service Bus “Active Connections”, “Connections Opened” and “Connections Closed”

做~自己de王妃 提交于 2020-06-29 04:23:44
问题 I am trying to find more information about "Active Connections", "Connections Opened" and "Connections Closed" in Azure Service Bus Metrics. Can someone help me finding a good document to understand these "Active Connections", "Connections Opened" and "Connections Closed" in Azure Service Bus ? 回答1: Active Connections - the number of active connections on a namespace as well as on an entity. Connections Opened - The number of open connections. Connections Closed - The number of closed