Skip to content

Commit 8362172

Browse files
Merge pull request #299745 from spelluru/sbusquotas0512
Service Bus - quotas table
2 parents 0800a15 + 6efe438 commit 8362172

File tree

3 files changed

+64
-27
lines changed

3 files changed

+64
-27
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
author: spelluru
3+
ms.service: azure-service-bus
4+
ms.topic: include
5+
ms.date: 05/12/2025
6+
ms.author: spelluru
7+
---
8+
9+
The following limits are common across all tiers.
10+
11+
| Quota name | Value | Notes |
12+
| --- | --- | --- |
13+
| Maximum number of namespaces per Azure subscription | 1000 (default and maximum) | This limit is based on the `Microsoft.ServiceBus` provider, not based on the tier. Therefore, it's the total number of namespaces across all tiers. Subsequent requests for additional namespaces are rejected. |
14+
| Number of concurrent connections on a namespace | Net Messaging: 1,000.<br /><br />AMQP: 5,000. | Subsequent requests for additional connections are rejected. REST operations don't count toward concurrent TCP connections. |
15+
| Number of concurrent receive requests on a queue, topic, or subscription entity | 5,000 | Subsequent receive requests are rejected. This quota applies to the combined number of concurrent receive operations across all subscriptions on a topic. |
16+
| Maximum size of any messaging entity path: queue or topic | 260 characters. | &nbsp; |
17+
| Maximum size of any messaging entity name: namespace, subscription, or subscription rule | 50 characters. | &nbsp; |
18+
| Maximum size of a message ID | 128 | &nbsp; |
19+
| Maximum size of a message session ID | 128 | &nbsp; |
20+
| Message property size for a queue, topic, or subscription entity | <p>Maximum message property size for each property is 32 KB.</p><p>Cumulative size of all properties can't exceed 64 KB. This limit applies to the entire header of the brokered message, which has both user properties and system properties, such as sequence number, label, and message ID.</p><p>Maximum number of header properties in property bag: **byte/int.MaxValue**.</p> | The exception `SerializationException` is generated.|
21+
| Number of SQL filters per topic | 2,000 | Subsequent requests for creation of additional filters on the topic are rejected, and the calling code receives an exception. |
22+
| Number of correlation filters per topic | 100,000 | Subsequent requests for creation of additional filters on the topic are rejected, and the calling code receives an exception. |
23+
| Size of SQL filters or actions | Maximum length of filter condition string: 1,024 (1 K).<br /><br />Maximum length of rule action string: 1,024 (1 K).<br /><br />Maximum number of expressions per rule action: 32. |Subsequent requests for creation of additional filters are rejected, and the calling code receives an exception. |
24+
| Number of shared access authorization rules per namespace, queue, or topic | Maximum number of rules per entity type: 12. <br /><br /> Rules that are configured on a Service Bus namespace apply to all types: queues, topics. | Subsequent requests for creation of additional rules are rejected, and the calling code receives an exception. |
25+
| Number of messages per transaction | 100 <br /><br /> For both **Send()** and **SendAsync()** operations. | Additional incoming messages are rejected, and the calling code receives an exception with the message: Can't send more than 100 messages in a single transaction. |
26+
| Maximum number of messages deleted in DeleteMessagesAsync call | 4000 |
27+
| Maximum number of messages returned in PeekMessagesAsync call | 250 |
28+
| Number of virtual network and IP filter rules | 128 |&nbsp; |
29+
30+
31+
32+
33+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
author: spelluru
3+
ms.service: azure-service-bus
4+
ms.topic: include
5+
ms.date: 05/12/2025
6+
ms.author: spelluru
7+
---
8+
9+
10+
The following table shows limits that are different for Basic, Standard, and Premium tiers.
11+
12+
13+
| Quota name | Basic | Standard | Premium | Notes |
14+
| --- | --- | --- | --- | --- |
15+
| Queue or topic size | 1, 2, 3, 4 GB or 5 GB<br/><br/>80 GB, if partitioning is enabled. | 80 GB</p> | 80 GB | Defined upon creation/updation of the queue or topic. <p>Total size of all entities in a namespace can't exceed the namespace size limit documented in the next row.</p><p>Subsequent incoming messages are rejected, and the calling code receives an exception.</p> <p>Currently, a large message (size \> 1 MB) sent to a queue is counted twice. And, a large message (size \> 1 MB) sent to a topic is counted X + 1 times, where X is the number of subscriptions to the topic. </p>|
16+
| Namespace size | 400 GB | 400 GB | 1 TB per [messaging unit (MU)](../service-bus-premium-messaging.md).| Total size of all entities in a namespace can't exceed this limit. |
17+
| Number of topics or queues per namespace | 10,000 | 10,000 | 1,000 per messaging unit (MU). | Subsequent requests for creation of a new topic or queue on the namespace are rejected. As a result, if configured through the Azure portal, an error message is generated. If called from the management API, the calling code receives an exception. |
18+
| Number of [partitioned topics or queues](/azure/service-bus-messaging/service-bus-partitioning) per namespace | 100 | 100 | N/A | Each partitioned queue or topic counts toward the quota of 1,000 entities per namespace. <p>Subsequent requests for creation of a new partitioned topic or queue in the namespace are rejected. As a result, if configured through the Azure portal, an error message is generated. If called from the management API, the exception **QuotaExceededException** is received by the calling code.</p> <p>If you want to have more partitioned entities in a basic or a standard tier namespace, create additional namespaces. </p>|
19+
| Message size or batch size for a queue, topic, or subscription entity | 256 KB | 256 KB | 100 MB on AMQP<br/><br/>1 MB for on HTTP and SBMP | The message size includes the size of properties (system and user) and the size of payload. The size of system properties varies depending on your scenario. Incoming messages that exceed these quotas are rejected, and the calling code receives an exception. |
20+
| Number of subscriptions per topic | 2,000 | 2,000 | 2,000 | Subsequent requests for creating additional subscriptions for the topic are rejected. As a result, if configured through the portal, an error message is shown. If called from the management API, the calling code receives an exception. |
21+
| Operations per second| 1,000 | 1,000 | N/A | Premium doesn't have fixed limitations on the operations per second. The throughput varies depending on the [number of MUs](../service-bus-premium-messaging.md#how-many-messaging-units-are-needed) and the characteristics of the workload. For more information on how the workload impacts the throughput, and how to optimize this, see [Best Practices for performance improvements using Service Bus Messaging](../service-bus-performance-improvements.md). |
22+
23+
24+

includes/service-bus-quotas-table.md

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: include file
3-
description: include file
2+
title: Quotas and limits for Azure Service Bus
3+
description: Provides the list of quotas and limits for Azure Service Bus resources.
44
author: spelluru
55
ms.service: azure-service-bus
66
ms.topic: include
@@ -10,29 +10,9 @@ ms.author: spelluru
1010

1111
The following table lists quota information specific to Azure Service Bus messaging. For information about pricing and other quotas for Service Bus, see [Service Bus pricing](https://azure.microsoft.com/pricing/details/service-bus/).
1212

13-
| Quota name | Scope | Value | Notes |
14-
| --- | --- | --- | --- |
15-
| Maximum number of namespaces per Azure subscription |Namespace | 1000 (default and maximum) | This limit is based on the `Microsoft.ServiceBus` provider, not based on the tier. Therefore, it's the total number of namespaces across all tiers. Subsequent requests for additional namespaces are rejected. |
16-
| Queue or topic size |Entity | <p>1, 2, 3, 4 GB or 5 GB</p><p>In the Premium SKU, and the Standard SKU with [partitioning](/azure/service-bus-messaging/service-bus-partitioning) enabled, the maximum queue or topic size is 80 GB.</p><p>Total size of all entities in a namespace can't exceed the namespace size limit documented in the next row.</p> | Defined upon creation/updation of the queue or topic. <br/><br/> Subsequent incoming messages are rejected, and an exception is received by the calling code. <p>Currently, a large message (size \> 1 MB) sent to a queue is counted twice. And, a large message (size \> 1 MB) sent to a topic is counted X + 1 times, where X is the number of subscriptions to the topic. </p>|
17-
| Namespace size | Namespace | <p>For a premium namespace, the total size limit for a premium namespace per [messaging unit](/azure/service-bus-messaging/service-bus-premium-messaging) is 1 TB. </p><p>The total size limit for a standard namespace is 400 GB.</p>| Total size of all entities in a namespace can't exceed this limit. |
18-
| Number of concurrent connections on a namespace |Namespace |Net Messaging: 1,000.<br /><br />AMQP: 5,000. | Subsequent requests for additional connections are rejected. REST operations don't count toward concurrent TCP connections. |
19-
| Number of concurrent receive requests on a queue, topic, or subscription entity |Entity | 5,000 |Subsequent receive requests are rejected. This quota applies to the combined number of concurrent receive operations across all subscriptions on a topic. |
20-
| Number of topics or queues per namespace |Namespace | 10,000 for the Basic or Standard tier. The total number of topics and queues in a namespace must be less than or equal to 10,000. <br/><br/>For the Premium tier, 1,000 per messaging unit (MU). | Subsequent requests for creation of a new topic or queue on the namespace are rejected. As a result, if configured through the [Azure portal], an error message is generated. If called from the management API, an exception is received by the calling code. |
21-
| Number of [partitioned topics or queues](/azure/service-bus-messaging/service-bus-partitioning) per namespace |Namespace | Basic and Standard tiers: 100. Each partitioned queue or topic counts toward the quota of 1,000 entities per namespace. | Subsequent requests for creation of a new partitioned topic or queue in the namespace are rejected. As a result, if configured through the [Azure portal], an error message is generated. If called from the management API, the exception **QuotaExceededException** is received by the calling code. <p>If you want to have more partitioned entities in a basic or a standard tier namespace, create additional namespaces. </p>|
22-
| Maximum size of any messaging entity path: queue or topic |Entity | 260 characters. | &nbsp; |
23-
| Maximum size of any messaging entity name: namespace, subscription, or subscription rule |Entity | 50 characters. | &nbsp; |
24-
| Maximum size of a message ID | Entity | 128 | &nbsp; |
25-
| Maximum size of a message session ID | Entity | 128 | &nbsp; |
26-
| Message size for a queue, topic, or subscription entity | Entity | 256 KB for [Standard tier](/azure/service-bus-messaging/service-bus-premium-messaging)<br/> 100 MB for [Premium tier](/azure/service-bus-messaging/service-bus-premium-messaging) on AMQP, and 1 MB for Premium on HTTP and SBMP. <br /><br />The maximum size for batches is 256 KB for the Standard tier, and 1 MB for the Premium tier. <br /><br />The message size includes the size of properties (system and user) and the size of payload. The size of system properties varies depending on your scenario. |Incoming messages that exceed these quotas are rejected, and an exception is received by the calling code. |
27-
| Message property size for a queue, topic, or subscription entity |Entity | <p>Maximum message property size for each property is 32 KB.</p><p>Cumulative size of all properties can't exceed 64 KB. This limit applies to the entire header of the brokered message, which has both user properties and system properties, such as sequence number, label, and message ID.</p><p>Maximum number of header properties in property bag: **byte/int.MaxValue**.</p> | The exception `SerializationException` is generated.|
28-
| Number of subscriptions per topic |Entity |2,000 per-topic for the Standard tier and Premium tier. |Subsequent requests for creating additional subscriptions for the topic are rejected. As a result, if configured through the portal, an error message is shown. If called from the management API, an exception is received by the calling code. |
29-
| Number of SQL filters per topic |Entity |2,000 |Subsequent requests for creation of additional filters on the topic are rejected, and an exception is received by the calling code. |
30-
| Number of correlation filters per topic |Entity | 100,000 | Subsequent requests for creation of additional filters on the topic are rejected, and an exception is received by the calling code. |
31-
| Size of SQL filters or actions |Namespace |Maximum length of filter condition string: 1,024 (1 K).<br /><br />Maximum length of rule action string: 1,024 (1 K).<br /><br />Maximum number of expressions per rule action: 32. |Subsequent requests for creation of additional filters are rejected, and an exception is received by the calling code. |
32-
| Number of shared access authorization rules per namespace, queue, or topic |Entity, namespace |Maximum number of rules per entity type: 12. <br /><br /> Rules that are configured on a Service Bus namespace apply to all types: queues, topics. |Subsequent requests for creation of additional rules are rejected, and an exception is received by the calling code. |
33-
| Number of messages per transaction | Transaction | 100 <br /><br /> For both **Send()** and **SendAsync()** operations. | Additional incoming messages are rejected, and an exception stating "Can't send more than 100 messages in a single transaction" is received by the calling code. |
34-
| Maximum number of messages deleted in DeleteMessagesAsync call | Entity | 4000 |
35-
| Maximum number of messages returned in PeekMessagesAsync call | Entity | 250 |
36-
| Number of virtual network and IP filter rules | Namespace | 128 |&nbsp; |
13+
### Common limits for all tiers
14+
[!INCLUDE [common-limits](../articles/service-bus-messaging/includes/common-limits.md)]
15+
16+
### Basic vs. standard vs. premium tiers
17+
[!INCLUDE [tier-limits](../articles/service-bus-messaging/includes/tier-limits.md)]
3718

38-
[Azure portal]: https://portal.azure.com

0 commit comments

Comments
 (0)