分区的 Azure 服务总线队列中允许的最大放置操作数是多少?

发布于 2025-01-09 08:51:56 字数 972 浏览 0 评论 0 原文

我有一个用例,需要将大量消息发送到 Azure 服务总线队列。从这个 https://github.com/Huachao/azure-content/blob/master/articles/service-bus/service-bus-azure-and-service-bus-queues-compared-contrasted.md我了解到 Azure 服务总线队列支持每秒 2000 个 put 操作(1kb 消息)。

但我每秒的写入次数会超过2000。

来自微软的文档

https://learn.microsoft.com/en-us/azure/service-bus-messaging/enable-partitions#:~:text=Service%20Bus%20partitions%20enable%20queues,message% 20broker%20or%20messaging%20store。

我已经看到我们可以创建一个分区队列,它将创建 16分区和队列的大小将增加16倍。但我不知道这会对 put 操作有什么影响吗? put 操作是否也会增加 16 倍,导致每秒 32000 次写入?

I have a use case where I need to send very large number of messages to Azure Service Bus queue. From this https://github.com/Huachao/azure-content/blob/master/articles/service-bus/service-bus-azure-and-service-bus-queues-compared-contrasted.md I got to know that the Azure Service Bus queue supports 2000 put operations per second (1kb message).

But my writes will be more than 2000 per second.

From the Microsoft's docs

https://learn.microsoft.com/en-us/azure/service-bus-messaging/enable-partitions#:~:text=Service%20Bus%20partitions%20enable%20queues,message%20broker%20or%20messaging%20store.

I have seen that we can create a partitioned queue which will create 16 partitions and the size of queue will be increased by 16 times. But I am not able to find will this have any impact on the put operations? will the put operations also be increased by 16 times resulting in 32000 writes per second?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

套路撩心 2025-01-16 08:51:56

您正在查看一份非常过时的文档,标准 SKU 的当前限制是每秒 1000 个积分(每个命名空间),请查看此 doc 了解有关积分如何运作的更多信息。

关于您的问题,分区实体所做的是将您的实体划分为多个逻辑组件,以实现更高的弹性,当您向分区实体发送消息时,会有一个内部负载平衡机制将消息分发到所有分区,这不是算作额外操作,因此如果您每秒发送 1000 条消息,则相当于 1000 个积分。

You are looking at a very outdated document, current limits for standard SKU is 1000 credits per second (per namespace), take a look at this doc for more info on how credits works.

Regarding your question, what partitioned entities do is dividing your entitiy into multiple logical components in order to achieve higher resiliency, when you send a message to a partitioned entitiy there will be an internal load balancing mechanism that distribute messages across all partitions, this is not counted as additional operations, hence if you send 1000 messages per second that is equivalent to 1000 credits.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文