gpt4 book ai didi

azure - 为什么不总是配置事件中心分区的最大数量?

转载 作者:行者123 更新时间:2023-12-04 15:20:54 26 4
gpt4 key购买 nike

Azure Event Hubs overview文章指出以下内容:

The number of partitions is specified at the Event Hub creation time and must be between 8 and 32. Partitions are a data organization mechanism and are more related to the degree of downstream parallelism required in consuming applications than to Event Hubs throughput. This makes the choice of the number of partitions in an Event Hub directly related to the number of concurrent readers you expect to have. After Event Hub creation, the partition count is not changeable; you should consider this number in terms of long-term expected scale. You can increase the 32 partition limit by contacting the Azure Service Bus team.

由于在初始创建后无法更改事件中心上的分区数量,为什么不始终将其配置为最大分区数量 32?我没有看到任何pricing这样做的影响。是否存在一些性能权衡?

此外,作为另一个旁注,我似乎能够创建一个分区少于 8 个的事件中心。文章说必须在8-32之间。不知道为什么这么说...

最佳答案

据我了解,每个分区都需要自己的消费者。您可以通过单个进程、多个进程上的多线程,甚至通过每个运行一个进程的多页计算机来完成此操作。但这具有一定程度的复杂性。管理所有进程以确保所有分区都被使用,或者用于同步跨分区的项目/事件。

因此,影响与其说是定价,不如说是可扩展性/复杂性。 :)

关于azure - 为什么不总是配置事件中心分区的最大数量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31972268/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com