How does message duplication prevention work in Azure Service Bus?
Muhammad Imran Ansari
While creating a queue we should set couple of settings which are 1. Enable Duplicate Detection -- **Checked** 2. Make sure you set duplicate detection window -- It can be 20 sec to 7 days max i guess. Now comes the major thing to set while sending your message to Queue, The property called " **MessageId**" should set explicitly in your code so that the **Service Bus** avoid queueing the same message with unique **MessageId** in the timeframe set in settings.