Why QueueClient.PeekBatch () and MessageReceiver.PeekBatch () do not drop the number of messages you specify

Both:

queueClient.PeekBatch(Convert.ToInt32(60));

And this:

messageReceiver.PeekBatch(Convert.ToInt32(60));

Does not work "completely." They return a smaller amount, and instead I have to pump these methods in a loop to the number of messages that I know we use:

var count = queue.MessageCountDetails.ActiveMessageCount;

What settings do I not have, why is Azure so mean and does not allow me to retreat, all 60 messages - I know what is - right away?

+4
source share
1 answer

azure , , , . , .

https://github.com/Azure-Samples/azure-servicebus-messaging-samples/tree/master/MessageBrowse#using-peekbatch

" 20, PeekBatchAsync , , . , 20 , "

azure , . , , . -, , , .

, , .

" 256 ".

+2

Source: https://habr.com/ru/post/1675817/


All Articles