我使用MassTransit作爲我的消息框架,在Azure Service Bus上運行。我正在WebJob中運行MassTransit(雖然我不認爲這很重要) 現在我試圖讓MassTransit同時處理多個消息,因爲我正在處理單獨的消息需要一段時間來處理。所以爲了加速性能,我不希望每個消息都被逐一處理。 我試着設置MaxConcurrentCalls爲例如30,但似乎沒有這樣做。消息仍然由我的消
我使用MassTransit編寫消費者並使用Azure服務總線作爲傳輸。 public async Task Consume(ConsumeContext<ISimpleRequest> context)
{
try
{
_log.InfoFormat("Strated working on {0}", context.Message.CustomerId);