Peeyush Varshney
Peeyush Varshney

Reputation: 42

Is there any specific way to achieve more then 32 messages from Azure Storage Queue in one http request

Currently I am able to get 32 messages by one request but I need more messages

Upvotes: 0

Views: 857

Answers (1)

Gaurav Mantri
Gaurav Mantri

Reputation: 136196

No. You can only peek or dequeue a maximum of 32 messages in a single request. This is the limitation from the REST API itself.

If you want to fetch more messages, you would need to do following things:

  1. You will need to make multiple HTTP requests with each request asking for a maximum of 32 messages from the Storage Queue service.

  2. You will need to dequeue messages instead of peeking messages. Peeking the messages will return you same set of messages.

  3. While dequeuing the messages, you need to keep the visibility timeout duration of the messages high enough so that the same message is not returned in subsequent requests.

Upvotes: 2

Related Questions