scorpion5211
scorpion5211

Reputation: 1070

Can azure webjob run simultaneously?

I currently have a webjob that runs when user does specific action. When the webjob is running it cannot accept a new request until its done with the current process. Is it possible to run webjob simultaneously, meaning be able to process a job for multiple clients at a time?

Upvotes: 3

Views: 1232

Answers (1)

Rob Reagan
Rob Reagan

Reputation: 7686

Absolutely. But how are you triggering your WebJob when a user performs a specific action? If you trigger a method within your WebJob via a QueueTrigger that listens for a message on an Azure Storage Queue, you can have multiple threads processing messages at once. You can do something similar using Service Bus queues as well.

Check out the docs in the parallel execution section here.

Upvotes: 3

Related Questions