0
votes

I am having two azure function one is http function and another one is queue trigger function. In http function i am adding a messasge to queue and in queue trigger processing it. When i log the message in queue trigger sometimes its triggering multiple times with the same message ? What will be the reason ?

Thanks in advance

1

1 Answers

5
votes

There might be several reasons. Without looking at the code, my guesses would be the following:

  • HTTP based function is invoked more than once. Can be verified by assigning either a unique message ID derived from the message properties and then de-duplicating using ASB's native de-dup.
  • Queue based function is not completing messages in time (lock duration time) and it becomes available again.

A few resources on message de-duplication you might find useful: