Home:ALL Converter>Unique messages on a Azure Service Bus Topic

Unique messages on a Azure Service Bus Topic

Ask Time:2019-05-25T01:06:11         Author:Thomas

Json Formatter

Is it possible to ensure unique messages on a Azure Service Bus Topic?

I know that ASB has a duplicate detection feature. But that’s not really what I am after.

Let’s say the Topic has a message with MessageID 123. Until this message has been processed by the consumer, I want to discard other message on the Topic with the same id. As soon as this message has been processed, new messages with id 123 are allowed again.

Can the Service Bus help with this, or do we need to handle this in the application layer.

Author:Thomas,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/56296886/unique-messages-on-a-azure-service-bus-topic
yy