azure-servicebus-queues

Choosing between .NET Service Bus Queues vs Azure Queue Service [closed]

大兔子大兔子 提交于 2019-11-28 15:59:36
问题 Just a quick question regarding an Azure application. If I have a number of Web and Worker roles that need to communicate, documentation says to use the Azure Queue Service. However, I've just read that the new .NET Service Bus now also offers queues. These look to be more powerful as they appear to offer a much more detailed API. Whilst the .NSB looks more interesting it has a couple of issues that make me wary of using it in distributed application. (for example, Queue Expiration... if I

Determining how many messages are on the Azure Service Bus Queue

守給你的承諾、 提交于 2019-11-28 08:58:56
I know there is a way to determine the number of messages (or approximate number) in the Azure Queue (Store Account); however is there a way to query for the number of pending messages on an Azure Service Bus queue? var nsmgr = Microsoft.ServiceBus.NamespaceManager.CreateFromConnectionString(connectionString); long count = nsmgr.GetQueue(queueName).MessageCount; Katsifaris It is called MessagesCountDetails.ActiveMessageCount. It returns the number of the Active Messages in the Queue. You probably have some Dead letter messages: var msg = Microsoft.ServiceBus.NamespaceManager

Determining how many messages are on the Azure Service Bus Queue

你离开我真会死。 提交于 2019-11-27 19:19:51
问题 I know there is a way to determine the number of messages (or approximate number) in the Azure Queue (Store Account); however is there a way to query for the number of pending messages on an Azure Service Bus queue? 回答1: var nsmgr = Microsoft.ServiceBus.NamespaceManager.CreateFromConnectionString(connectionString); long count = nsmgr.GetQueue(queueName).MessageCount; 回答2: It is called MessagesCountDetails.ActiveMessageCount. It returns the number of the Active Messages in the Queue. You

How do you access the dead letter sub-queue on an Azure subscription?

假装没事ソ 提交于 2019-11-27 03:54:18
问题 When I use the following: var deadLetterPath = SubscriptionClient.FormatDeadLetterPath(topicPath,subName); var client = SubscriptionClient.CreateFromConnectionString(connectionString, deadLetterPath, subName); I get an InvalidOperationException Cannot directly create a client on a sub-queue. Create a client on the main queue and use that to create receivers on the appropriate sub-queue Some parts of the azure documentation say to use SubscriptionClient.CreateReceiver to access a sub-queue but