问题描述
我有一个WebJobs,其中包含几乎10个不同的功能,每个功能都是由ServiceBusTrigger触发的,这些功能似乎来自不同的Service Bus队列。
我希望具有高吞吐量,因此我进行了配置:
- PrefetchCount为200
- MaxConcurrentCalls达到100
在WebJob Main方法上,如下所示:
var host = new JobHost(config);
config.UseServiceBus(new ServiceBusConfiguration()
{
PrefetchCount = 200,MessageOptions = new OnMessageOptions() { MaxConcurrentCalls = 100 },});
我认为此PrefetchCount和ConcurrentCalls在此WebJob中包含的所有功能之间共享。这是正确的假设吗?
如果是,为了使单个函数的MaxConcurrentCalls为100,将每个函数都带到不同的专用WebJob是唯一的解决方案吗?