This page comparing storage queues and Service Bus says the maximum number of queues per namespace is 10,000, but this page says:
> Each subscription counts against the quota of 1,000 entities, that is, queues, topics, and subscriptions, per namespace
This directly contradicts the 10,000 maximum mentioned elsewhere. Also, this "quota of 1,000 entities" doesn't seem to be mentioned anywhere else on this page?
Is there really a limit on of only 1,000 on the number of combined queues, topics and subscriptions?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@cocowalla Thank you for your feedback! We will review and update as appropriate.
I'd also like to know whether the Azure Service Bus queue limit is 1,000 or 10,000. Additionally, would this apply to other entities such as topics/subscriptions? This will have significant impact on our architecture.
This gets interesting. I can create 10,000 topics. creating anymore results in the following error:
Microsoft.ServiceBus.Messaging.QuotaExceededException
HResult=0x80131500
Message=The remote server returned an error: (403) Forbidden. SubCode=40300. The maximum number of resources of type Topic has been reached or exceeded. Actual: 10000, Max allowed: 10000.
Now I'm trying to see how many subscriptions I can create on the first topic created to see if I can bust some sort of limit per-topic, then across topics.
It looks like the maximum number of subscriptions is 2,000 per-topic. I get the following error after creating as many subscriptions as I can on the first topic:
Microsoft.ServiceBus.Messaging.QuotaExceededException
HResult=0x80131500
Message=The remote server returned an error: (403) Forbidden. The number of maximum allowed subscriptions have been reached or exceeded. Number of subscriptions:2001, Max number of subscriptions allowed: 2000.
I can continue to create subscriptions on other topics within the same namespace.
Fyi @cocowalla, after creating 10,000 topics, I can still create queues on the same namepace. So the topic limits don't count towards the limit of queues, although I've not looked at the limits on queues.
@brentnewbury-work seems like the docs definitely need some updates then! :smile:
@cocowalla I have assigned this to content author to review and update as appropriate.
I've approved the changes and these will be merged soon.
Most helpful comment
Fyi @cocowalla, after creating 10,000 topics, I can still create queues on the same namepace. So the topic limits don't count towards the limit of queues, although I've not looked at the limits on queues.