服务总线配额Service Bus quotas

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

消息传送配额Messaging quotas

下表列出了特定于服务总线消息的配额信息。The following table lists quota information specific to Service Bus messaging. 有关服务总线的定价及其他配额的信息,请参阅 服务总线定价 概述。For information about pricing and other quotas for Service Bus, see the Service Bus Pricing overview.

配额名称Quota Name 范围Scope 说明Notes Value
每个 Azure 订阅的基本/标准命名空间的最大数量Maximum number of basic / standard namespaces per Azure subscription 命名空间Namespace 后续请求更多基本/标准命名空间会被门户拒绝。Subsequent requests for additional basic / standard namespaces are rejected by the portal. 100100
每个 Azure 订阅的高级命名空间的最大数量Maximum number of premium namespaces per Azure subscription 命名空间Namespace 后续请求更多高级命名空间会被门户拒绝。Subsequent requests for additional premium namespaces are rejected by the portal. 1010
队列/主题大小Queue/topic size 实体Entity 创建队列/主题时定义。Defined upon creation of the queue/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, as well as Standard with partitioning enabled, the maximum queue/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 do not count towards concurrent TCP connections. NetMessaging:1,000NetMessaging: 1,000

AMQP:5,000AMQP: 5,000
队列/主题/订阅实体上的并发接收请求数Number of concurrent receive requests on a queue/topic/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/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(Basic/Standard tier). 命名空间中主题和队列的数目之和必须小于或等于 10,000。The total number of topics and queues in a namespace must be less than or equal to 10,000.
每个命名空间的分区主题/队列Number of partitioned topics/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, a QuotaExceededException exception is received by the calling code. 基本和标准层 - 100Basic and Standard Tiers - 100

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

在每个命名空间中,每个分区队列或主题的实体配额不会超过 10,000 个。Each partitioned queue or topic counts towards the quota of 10,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
消息 SessionID 的最大大小Maximum size of a message SessionID 实体Entity - 128128
队列/主题/订阅实体的消息大小Message size for a queue/topic/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 (Standard tier) / 1 MB (Premium tier).

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

最大标头大小:64 KBMaximum header size: 64 KB

属性包中的最大标头属性数:byte/int.MaxValueMaximum 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/subscription entity 实体Entity 将生成 SerializationException 异常。A SerializationException exception is generated. 每个属性的最大消息属性大小为 32 K。所有属性的累计大小不得超过 64 K。此限制适用于整个 BrokeredMessage 标头,其中既有用户属性,又有系统属性(如 SequenceNumberLabelMessageId 等)。Maximum message property size for each property is 32 K. Cumulative size of all properties cannot exceed 64 K. This limit applies to the entire header of the BrokeredMessage, which has both user properties as well as system properties (such as SequenceNumber, Label, MessageId, and so on).
每个主题的订阅数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,0002,000
每个主题的 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/actions 命名空间Namespace 系统将拒绝后续的创建更多筛选器的请求,且调用代码会收到异常。Subsequent requests for creation of additional filters are rejected and an exception is received by the calling code. 筛选器条件字符串的最大长度:1024 (1 K)。Maximum length of filter condition string: 1024 (1K).

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

每个规则操作的最大表达式数: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: 12.

在服务总线命名空间中配置的规则适用于该命名空间中的所有队列和主题。Rules that are configured on a Service Bus namespace apply to all queues and topics in that namespace.
每个事务的消息数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.