1

Azure 在收到的批次项目方面是否有某种限制?尽管被要求更多,但以下代码仅检索 450 条消息:

QueueConnector.MyQueueClient.ReceiveBatch(1000, new TimeSpan(0, 0, 10));

我尝试增加次数,但每次都没有任何影响--450。这似乎是批量接收的 Azure SDK 文档中推荐的方式。

注意:队列中有数万个项目。

4

1 回答 1

1

The count passed to the ReceiveBatch is an upper bound and that is also mentioned right in the docs, so this is expected behavior. Service Bus will release a batch based on message availability or batch size. Batches are capped at 256 kByte for send and receive. For SendBatch, that's also said in the docs.

于 2014-12-10T14:12:50.447 回答