gpt4 book ai didi

Azure服务总线队列: Load Balancing Capability

转载 作者:行者123 更新时间:2023-12-03 05:50:11 24 4
gpt4 key购买 nike

我正在研究 Azure 服务总线队列负载平衡。我发现“随着负载的增加,可以添加更多工作进程来从队列中读取数据。”这是否意味着我需要实现代码来自动缩放工作角色,或者服务总线队列具有内置功能来增加或减少工作人员以根据负载处理事件?

最佳答案

Does it mean that I need implement code to auto scale the worker roles, or service bus queues having built in capability to increase or decrease the workers to process the events depending on the load?

Azure 服务总线只是一个消息存储。它不知道消息消费者(在您的情况下是 worker 角色)。因此它不具备扩大/缩小 worker 规模的能力。这是您需要自己完成的事情。

但是,您不需要编写代码来执行此操作。 Azure 提供了可以配置的自动缩放功能。正确配置自动缩放后,Azure 将根据配置自动扩展/缩小您的工作线程实例。

关于Azure服务总线队列: Load Balancing Capability,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48654835/

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