Reputation: 42
Currently I am able to get 32 messages by one request but I need more messages
Upvotes: 0
Views: 857
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:
You will need to make multiple HTTP requests with each request asking for a maximum of 32 messages from the Storage Queue service.
You will need to dequeue messages
instead of peeking messages
. Peeking the messages will return you same set of messages.
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