Azure Web Jobs - Triggered from queue - triggered or continuous?

大憨熊 提交于 2019-12-24 06:28:20

问题


I have a web job I've created and I want to deploy to azure. However I'm confused about the configuration when you create it.

It's a web job that's triggered from an azure storage queue. It works fine locally.

However when I go to create the web job in azure, I'm confused by the choices...my choices are Triggered or Continuous.

If I choose Continuous, I get a choice single or Multi.

If I choose Triggered, I'm given a choice of Scheduled or Manual. I don't want a Scheduled, and I'm not sure what Manual means...that doesn't seem like it's right either.

I know the web job that's triggered from the azure queue is really "polling" and not triggered...so it seems like continuous is the right choice. But I'm not sure.

So the question is...when creating a Web Job that's triggered from an Azure Queue, what is the right deploy configuration?


回答1:


I sounds like you are using the Azure WebJobs SDK. In SDK scenarios, even though your individual functions are 'triggered', the WebJob as a while runs continuously (i.e. your exe keeps running and does its own internal triggering). So what you want is Continuous Multi. No reason to use singleton in most cases, and it's not relevant anyway until you scale out to multiple instances.



来源:https://stackoverflow.com/questions/40195458/azure-web-jobs-triggered-from-queue-triggered-or-continuous

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!