Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The duplicate detection is looking at the <code>MessageId</code> property of the brokered message. So, if you set the message Id to something that should be unique per message coming in the duplicate detection can catch it. As far as I know only the message Id is used for detection. The contents of the message are NOT looked at, so if you have two messages sent that have the same actual content, but have different message IDs they will not be detected as duplicate.</p> <p>References:</p> <p>MSDN Documentation: <a href="http://msdn.microsoft.com/en-us/library/windowsazure/hh367516.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/windowsazure/hh367516.aspx</a></p> <blockquote> <p>If the scenario cannot tolerate duplicate processing, then additional logic is required in the application to detect duplicates which can be achieved based upon the MessageId property of the message which will remain constant across delivery attempts. This is known as Exactly Once processing.</p> </blockquote> <p>There is also a <a href="https://code.msdn.microsoft.com/Brokered-Messaging-c0acea25" rel="noreferrer">Brokered Message Duplication Detection code sample</a> on WindowsAzure.com that should be exactly what you are looking for as far as proving it out.</p> <p>I also quickly tested this out and sent in 5 messages to a queue with <code>RequiresDuplicateDetection</code> set to true, all with the exact same content but different <code>MessageIds</code>. I then retrieved all five messages. I then did the reverse where I had matching <code>MessageIds</code> but different payloads, and only one message was retrieved.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload