Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Azure Service Bus delayed (scheduled) message on Topic is lost when used with Duplicate Detection

$
0
0

We are facing a problem with Service Bus.

  1. We have a topic, with two subscriptions.
  2. 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)
  3. 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)
  4. 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
  5. When debugged, this issue doesn’t come up
  6. When we send the First message with at least 30 second delay (scheduled), then it is working fine
  7. 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.



Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>