How does Windows Azure Service Bus Queues Duplicate Detection work?

Ross Vernal picture Ross Vernal · May 31, 2013 · Viewed 10.5k times · Source

I know that you can set duplicate detection to work over a time period with an azure service bus queue. However, does anyone know whether this works based on the objects in the queue?

So if I have an object with an id of "SO_1" which gets put on the queue and is subsequently consumed, is the duplicate detection still valid?

What I think I'm asking is - is it the timeframe and the object, or just the timeframe that make the queue decide what is a duplicate?

Answer

user2399170 picture user2399170 · May 31, 2013

http://blog.iquestgroup.com/en/windows-azure-service-bus-duplicate-detection/#.UaiXrd7frIU

When we activate duplication, the Windows Azure Service Bus will start to store a history of our messages. This period of time can be configured to range from only a few minutes to days. If a duplicate message is sent to the Service Bus, the service will automatically ignore the message.