Being Throttled by Azure Service Bus

Viewed 5896

I'm getting the below exception in Windows Azure when I attempt to retrieve messages from the service bus.

Microsoft.ServiceBus.Messaging.ServerBusyException: The request was terminated because the entity is being throttled. Please wait 10 seconds and try again

The exception occures after calling the Receive method:

QueueClient queueClient = _messagingFactory.CreateQueueClient(queueName);
var brokeredMessage = queueClient.Receive(TimeSpan.Zero);

Is this configurable or am I putting to much demand on the message bus?

1 Answers

Without knowing more than what you posted, it appears that you were taxing your Service Bus instance to the max. However, with this question originally being from almost 7 years ago, it's important to note that the Azure Service Bus scalability targets have increased much over this time.

You can reference this Azure documentation article for more information on the quotas and throttling thresholds for Azure Service Bus:

https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quotas

Related