We are facing a problem with Service Bus.
- We have a topic, with two subscriptions.
- We have enabled Duplicate Detection on those, with 1 minutes window (tried with 2 seconds first). We are using Duplicate Detection to avoid multiple messages processed in short interval (to maintain the interval between the messages)
- We are using the message scheduling (ScheduledEnqueueTimeUtc) to repeat the messages to appear after 5 minutes, with same message ID (every time a new message is created with schedule, and old message is completed)
- The workflow is as follows (problem):
- First time a message is published (without scheduling)
- This message is immediately consumed by the message pump, and a new message with same details and a schedule time of 5 minutes is send to topic (UTC), expecting it to appear after 5 minutes
- The message is not appearing in the subscription
- When debugged, this issue doesn’t come up
- When we send the First message with at least 30 second delay (scheduled), then it is working fine
- If we recreate the topic and subscription with Duplicate Detection turned off, we are able to get the message using the above workflow
Since we have no clue on what is happening to the published message, we need help to identify the root cause of the issue.