Azure 在收到的批次项目方面是否有某种限制?尽管被要求更多,但以下代码仅检索 450 条消息:
QueueConnector.MyQueueClient.ReceiveBatch(1000, new TimeSpan(0, 0, 10));
我尝试增加次数,但每次都没有任何影响--450。这似乎是批量接收的 Azure SDK 文档中推荐的方式。
注意:队列中有数万个项目。
Azure 在收到的批次项目方面是否有某种限制?尽管被要求更多,但以下代码仅检索 450 条消息:
QueueConnector.MyQueueClient.ReceiveBatch(1000, new TimeSpan(0, 0, 10));
我尝试增加次数,但每次都没有任何影响--450。这似乎是批量接收的 Azure SDK 文档中推荐的方式。
注意:队列中有数万个项目。
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.