1

Can I trigger multiple azure function on a single queue trigger. Use case is that i am storing auth token in a queue, and multiple functions take up the token to call the different endpoints respectively. Or will the first one grab the message (token) and remove it from the queue.

3 Answers 3

2

In this scenario, I would use ServiceBusTrigger function. You can create a topic in a Service Bus, then for this one topic you can have multiple subscribers. So, even if 1 subscriber has finished going trough the messages, you can still have a subscriber which has not even started once and don't worry about this subscriber missing any message.

EDIT
Useful links

Sign up to request clarification or add additional context in comments.

Comments

1

@dhruv Yes you can create multiple functions with the same queue, all works in parallel as likewise event grid subscribers, which queue you're using, is it storage queue or service bus etc?

Comments

0

You could use a durable function for this.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.