Jaffer Sathick
Jaffer Sathick

Reputation: 546

Service bus queue trigger with Azure function calling multiple times for same message

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

Upvotes: 0

Views: 1064

Answers (1)

Sean Feldman
Sean Feldman

Reputation: 25994

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:

Upvotes: 5

Related Questions