locked
Monitoring a Message Azure Queue Storage RRS feed

  • Question

  • I'd like to write a web app that posts a message to Azure Queue Storage, this message will be picked up by a WebJob. Is it possible for the web app that posted the message to monitor the message, such that it can determine if the message was picked up and dealt with by the WebJob?

    Thanks,

    Slicc


    • Edited by Slicc Wednesday, November 25, 2015 7:47 AM
    Wednesday, November 25, 2015 7:47 AM

Answers

  • Hi,

    The answer is NO, it's not possible. Users are only allowed to Peek/Get messages from the front of the Azure Queue, there is no way to get a specific message by ID.

    Basically, what you're asking is not a typical using pattern of a queue; please make sure Azure Queue is the right choice to solve your problem. If you indeed need an Azure Queue in your scenario, consider introducing other kinds of storage (e.g. Azure Table) to track the life cycle of queue messages.

    Best Regards,

    Zhaoxing Lu


    • Edited by Zhaoxing Lu Friday, November 27, 2015 1:59 AM Proposal
    • Marked as answer by Slicc Friday, November 27, 2015 8:56 AM
    Friday, November 27, 2015 1:54 AM

All replies

  • Hi,

    Thanks for posting here.

    A queue can contain an unlimited number of messages, each of which can be up to 64KB in size using version 2011-08-18 or newer. For previous versions, the maximum size of a message is 8KB. Messages are generally added to the end of the queue and retrieved from the front of the queue, although first in, first out (FIFO) behavior is not guaranteed.

    If you need to store messages larger than 64KB, you can store message data as a blob or in a table, and then store a reference to the data as a message in a queue.

    https://msdn.microsoft.com/en-us/library/azure/dd135717.aspx

    https://msdn.microsoft.com/en-us/library/azure/dd179401.aspx

    Hope this helps.

    Girish Prajwal

    Wednesday, November 25, 2015 5:58 PM
  • I think perhaps your reply was meant for a different post, I wanted to know if it was possible for the application that posted the message to the queue to monitor the message posted on the queue, nothing to do with the size.

    Thanks,

    Slicc

    Thursday, November 26, 2015 9:06 AM
  • Hi,

    The answer is NO, it's not possible. Users are only allowed to Peek/Get messages from the front of the Azure Queue, there is no way to get a specific message by ID.

    Basically, what you're asking is not a typical using pattern of a queue; please make sure Azure Queue is the right choice to solve your problem. If you indeed need an Azure Queue in your scenario, consider introducing other kinds of storage (e.g. Azure Table) to track the life cycle of queue messages.

    Best Regards,

    Zhaoxing Lu


    • Edited by Zhaoxing Lu Friday, November 27, 2015 1:59 AM Proposal
    • Marked as answer by Slicc Friday, November 27, 2015 8:56 AM
    Friday, November 27, 2015 1:54 AM
  • Thanks for the RESPONSE,

    Slicc

    Friday, November 27, 2015 8:56 AM