azureservicebus

Reusing Connections in Azure Service Bus

送分小仙女□ 提交于 2019-12-03 08:39:38
We have an API hosted on Windows Azure in a web role with 2 instances that takes in requests, validates them then adds them to an Azure Service Bus Queue. Recently we've started load testing this and found that our current code throws the below exception: Could not add command to the command queue Exception: Microsoft.ServiceBus.Messaging.QuotaExceededException: The number of maximumallowed connections have been reached or exceeded for Queue Number of active connections: 100, Maximum allowed connections: 100. Would the below client code keep a single connection open assuming we maintained a

The lock supplied is invalid. Either the lock expired, or the message has already been removed from the queue

百般思念 提交于 2019-12-03 08:22:03
问题 I'm using a Microsoft azure service bus queue to process calculations and my program runs fine for a few hours but then I start to get this exception for every message that I process from then on. I have no clue where to start since everything runs fine for the first few hours. My code seems to be accurate as well. I will post the method where I handle the azure service bus message. public static async Task processCalculations(BrokeredMessage message) { try { if (message != null) { if

Do messages in dead letter queues in Azure Service Bus expire?

非 Y 不嫁゛ 提交于 2019-12-03 07:00:39
Do messages in dead letter queues in Azure Service Bus expire? Some explanation I have these queue settings: var queueDescription = new QueueDescription("MyTestQueue") { RequiresSession = false, DefaultMessageTimeToLive = TimeSpan.FromMinutes(1), EnableDeadLetteringOnMessageExpiration = true, MaxDeliveryCount = 10 }; namespaceManager.CreateQueue(queueDescription); When I place some messages in a Azure Service Bus message queue (not queues from Azure Storage) and don't consume them (ever), they'll be moved to the dead letter queue automatically. However, if I have no consumer for the dead

Azure Service Bus 1.1 Failing to Start

烈酒焚心 提交于 2019-12-03 06:13:51
问题 Service Bus Gateway is not starting. First of all I have tried completely uninstalling all Azure/Fabric/Service Bus type SDKs and installations. I have installed both Windows Azure Pack: Service Bus 1.1 and Windows Azure Pack: Security Update for Service Bus 1.1 (KB2972621) from scratch. After deleting all service bus related databases I start the Service Bus Configuration wizard and begin starting a new farm with custom settings. I leave everything default except adding my own certificates,

Using QueueClient.OnMessage in an azure worker role

你。 提交于 2019-12-03 03:12:09
问题 I have an Azure worker role that is responsible for checking 4 service bus queues. Currently, I just the looping method to manually check the queues. while(true) { //loop through my queues to check for messages } With the Azure SDK 2.0 came the ability to listen for messages rather than polling for them. But Every example I've seen uses a console app with Console.ReadKey(). Is there a way to have the worker role sit and wait on messages too? I tried: public override void Run() {

Azure Service Bus 1.1 Failing to Start

血红的双手。 提交于 2019-12-02 19:37:36
Service Bus Gateway is not starting. First of all I have tried completely uninstalling all Azure/Fabric/Service Bus type SDKs and installations. I have installed both Windows Azure Pack: Service Bus 1.1 and Windows Azure Pack: Security Update for Service Bus 1.1 (KB2972621) from scratch. After deleting all service bus related databases I start the Service Bus Configuration wizard and begin starting a new farm with custom settings. I leave everything default except adding my own certificates, and of course entering my password. After clicking go the the service bus configuration wizard

Azure Service Bus Filter Not Applied When Defined in ARM Template

旧城冷巷雨未停 提交于 2019-12-02 07:32:34
问题 I have defined below a fragment of an ARM template which creates a service bus topic, subscription, and rule/filter. The rule is applied along with the topic and subscription, but the value of the filter is 1=1. Why would the expression not be applied? { "apiVersion": "2017-04-01", "name": "[concat(parameters('serviceBusNamespaceName'), '/TOPIC-NAME')]", "type": "Microsoft.ServiceBus/namespaces/topics", "location": "[variables('location')]", "dependsOn": [ "[concat('Microsoft.ServiceBus

Azure Service Bus Filter Not Applied When Defined in ARM Template

Deadly 提交于 2019-12-02 05:01:01
I have defined below a fragment of an ARM template which creates a service bus topic, subscription, and rule/filter. The rule is applied along with the topic and subscription, but the value of the filter is 1=1. Why would the expression not be applied? { "apiVersion": "2017-04-01", "name": "[concat(parameters('serviceBusNamespaceName'), '/TOPIC-NAME')]", "type": "Microsoft.ServiceBus/namespaces/topics", "location": "[variables('location')]", "dependsOn": [ "[concat('Microsoft.ServiceBus/namespaces/', parameters('serviceBusNamespaceName'))]" ], "properties": { "path": "TOPIC-NAME",

Connection Azure service bus via Java client

我们两清 提交于 2019-12-02 04:12:26
问题 I am trying to connect Azure service bus from Java client with AMQP protocol I follow the instruction in the following link: http://azure.microsoft.com/en-us/documentation/articles/service-bus-java-how-to-use-jms-api-amqp/ 1) created service bus in Azure portal with the name space ' availo ' and a queue named ' queue1 ' 2) from service bus connection information I've got the following: SharedAccessKeyName=RootManageSharedAccessKey SharedAccessKey={key} 3) created "servicebus.properties" file

Different connection string for output or trigger

大憨熊 提交于 2019-12-02 01:48:51
Here i have a webjob function using servicebus triggers and outputs. I'd like to set a different configuration for output and input. public static void OnPush( [ServiceBusTrigger("%PushProcessor.InputTopicName%", "%PushProcessor.InputTopicSubscriptionName%", AccessRights.Listen)] BrokeredMessage message, [ServiceBus("%PushProcessor.OutputTopicName%", AccessRights.Send)] out BrokeredMessage output ) I see in latest api that one can control the job host with service bus extensions. JobHostConfiguration config = new JobHostConfiguration { StorageConnectionString = ConfigHelpers.GetConfigValue(