Interviews1 answer
How does message duplication prevention work in Azure Service Bus?
1 Answer
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.
Md Kaleem PashaPosted Jun 22, 2025, 8:06 AM EDT

