服务总线配额Service Bus quotas

本部分列出了 Azure 服务总线消息传送的基本配额和限制阈值。This section lists basic quotas and throttling thresholds in Azure Service Bus messaging.

消息传送配额Messaging quotas

下表列出了特定于 Azure 服务总线消息的配额信息。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.

配额名称Quota name 作用域Scope 注释Notes Value
每个 Azure 订阅的基本或标准命名空间的最大数量Maximum number of Basic or Standard namespaces per Azure subscription 命名空间Namespace Azure 门户会拒绝对更多基本或标准命名空间的后续请求。Subsequent requests for additional Basic or Standard namespaces are rejected by the Azure portal. 100100
每个 Azure 订阅的高级命名空间的最大数量Maximum number of Premium namespaces per Azure subscription 命名空间Namespace 门户会拒绝对更多高级命名空间的后续请求。Subsequent requests for additional Premium namespaces are rejected by the portal. 100100
队列或主题大小Queue or topic size 实体Entity 创建队列或主题时定义。Defined upon creation of the queue or topic.

后续的传入消息会被拒绝,且调用代码会收到异常。Subsequent incoming messages are rejected, and an exception is received by the calling code.
1、2、3、4 GB 或 5 GB。1, 2, 3, 4 GB or 5 GB.

在高级 SKU 以及启用了分区的标准 SKU 中,队列或主题的最大大小是 80 GB。In the Premium SKU, and the Standard SKU with partitioning enabled, the maximum queue or topic size is 80 GB.
命名空间上的并发连接数Number of concurrent connections on a namespace 命名空间Namespace 系统会拒绝后续的附加连接请求,且调用代码会收到异常。Subsequent requests for additional connections are rejected, and an exception is received by the calling code. REST 操作不计入并发 TCP 连接数。REST operations don't count toward concurrent TCP connections. Net Messaging:1,000。Net Messaging: 1,000.

AMQP:5,000。AMQP: 5,000.
队列、主题或订阅实体上的并发接收请求数Number of concurrent receive requests on a queue, topic, or subscription entity 实体Entity 后续的接收请求会被拒绝,且调用代码会收到异常。Subsequent receive requests are rejected, and an exception is received by the calling code. 此配额适用于一个主题上所有订阅的并发接收操作总数。This quota applies to the combined number of concurrent receive operations across all subscriptions on a topic. 5,0005,000
每个命名空间的主题或队列数Number of topics or queues per namespace 命名空间Namespace 系统将拒绝后续的在命名空间中创建新主题或队列的请求。Subsequent requests for creation of a new topic or queue on the namespace are rejected. 因此,如果是通过 Azure 门户配置的,将生成错误消息。As a result, if configured through the Azure portal, an error message is generated. 如果是通过管理 API 调用的,调用代码将收到异常。If called from the management API, an exception is received by the calling code. 基本层或标准层为 10,000。10,000 for the Basic or Standard tier. 命名空间中主题和队列的数目之和必须小于或等于 10,000。The total number of topics and queues in a namespace must be less than or equal to 10,000.

对于高级层,每个消息传送单元 (MU) 为 1,000。For the Premium tier, 1,000 per messaging unit (MU). 最大限制为 4,000。Maximum limit is 4,000.
每个命名空间的分区主题或队列Number of partitioned topics or queues per namespace 命名空间Namespace 系统将拒绝后续的在命名空间中创建新分区主题或队列的请求。Subsequent requests for creation of a new partitioned topic or queue on the namespace are rejected. 因此,如果是通过 Azure 门户配置的,将生成错误消息。As a result, if configured through the Azure portal, an error message is generated. 如果是通过管理 API 调用的,调用代码会收到 QuotaExceededException 异常。If called from the management API, the exception QuotaExceededException is received by the calling code. 基本层和标准层:100。Basic and Standard tiers: 100.

高级层中不支持分区实体。Partitioned entities aren't supported in the Premium tier.

每个分区的队列或主题都会计入每个命名空间 1,000 个实体的配额。Each partitioned queue or topic counts toward the quota of 1,000 entities per namespace.
任一消息实体路径的最大大小:队列或主题Maximum size of any messaging entity path: queue or topic 实体Entity - 260 个字符。260 characters.
任一消息实体名称的最大大小:命名空间、订阅或订阅规则Maximum size of any messaging entity name: namespace, subscription, or subscription rule 实体Entity - 50 个字符。50 characters.
消息 ID 的最大大小Maximum size of a message ID 实体Entity - 128128
消息会话 ID 的最大大小Maximum size of a message session ID 实体Entity - 128128
队列、主题或订阅实体的消息大小Message size for a queue, topic, or subscription entity 实体Entity 超过这些配额的传入消息会被拒绝,且调用代码会收到异常。Incoming messages that exceed these quotas are rejected, and an exception is received by the calling code. 最大消息大小:标准层为 256 KB,高级层为 1 MB。Maximum message size: 256 KB for Standard tier, 1 MB for Premium tier.

由于系统开销,此限制小于这些值。Due to system overhead, this limit is less than these values.

最大标头大小:64 KB。Maximum header size: 64 KB.

属性包中标头属性的最大数:byte/int.MaxValue。Maximum number of header properties in property bag: byte/int.MaxValue.

属性包中属性的最大大小:没有明确的限制。Maximum size of property in property bag: No explicit limit. 受最大标头大小限制。Limited by maximum header size.
队列、主题或订阅实体的消息属性大小Message property size for a queue, topic, or subscription entity 实体Entity 生成了 SerializationException 异常。The exception SerializationException is generated. 每个属性的最大消息属性大小为 32,000。Maximum message property size for each property is 32,000. 所有属性的累计大小不得超过 64,000。Cumulative size of all properties can't exceed 64,000. 此限制适用于中转消息的整个标头,其中既有用户属性也有系统属性,如序列号标签消息 IDThis 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.
每个主题的订阅数Number of subscriptions per topic 实体Entity 系统将拒绝后续的为主题创建更多订阅的请求。Subsequent requests for creating additional subscriptions for the topic are rejected. 因此,如果是通过门户配置的,会显示错误消息。As a result, if configured through the portal, an error message is shown. 如果是通过管理 API 调用的,调用代码将收到异常。If called from the management API, an exception is received by the calling code. 标准层为每主题 2,000 个。2,000 per-topic for the Standard tier.
每个主题的 SQL 筛选器数Number of SQL filters per topic 实体Entity 在主题上创建更多筛选器的后续请求会被拒绝,且调用代码会收到异常。Subsequent requests for creation of additional filters on the topic are rejected, and an exception is received by the calling code. 2,0002,000
每个主题的相关性筛选器数Number of correlation filters per topic 实体Entity 在主题上创建更多筛选器的后续请求会被拒绝,且调用代码会收到异常。Subsequent requests for creation of additional filters on the topic are rejected, and an exception is received by the calling code. 100,000100,000
SQL 筛选器或操作的大小Size of SQL filters or actions 命名空间Namespace 创建更多筛选器的后续请求将被拒绝,且调用代码会收到异常。Subsequent requests for creation of additional filters are rejected, and an exception is received by the calling code. 筛选器条件字符串的最大长度:1,024 (1 K)。Maximum length of filter condition string: 1,024 (1 K).

规则操作字符串的最大长度:1,024 (1 K)。Maximum length of rule action string: 1,024 (1 K).

每个规则操作的最大表达式数:32。Maximum number of expressions per rule action: 32.
每个命名空间、队列或主题的 SharedAccessAuthorizationRule 规则数Number of SharedAccessAuthorizationRule rules per namespace, queue, or topic 实体、命名空间Entity, namespace 创建更多规则的后续请求将被拒绝,且调用代码会收到异常。Subsequent requests for creation of additional rules are rejected, and an exception is received by the calling code. 每个实体类型的最大规则数:12.Maximum number of rules per entity type: 12.

在服务总线命名空间上配置的规则适用于所有类型:队列、主题。Rules that are configured on a Service Bus namespace apply to all types: queues, topics.
每个事务的消息数Number of messages per transaction 事务Transaction 更多传入消息会被拒绝,并且调用代码会收到异常,其中指明“不能在单个事务中发送 100 条以上的消息”。Additional incoming messages are rejected, and an exception stating "Cannot send more than 100 messages in a single transaction" is received by the calling code. 100100

适用于 Send() 和 SendAsync() 操作********。For both Send() and SendAsync() operations.
虚拟网络和 IP 筛选器规则的数量Number of virtual network and IP filter rules 命名空间Namespace   128128