Azure Web作业-从队列触发-是触发还是连续? [英] Azure Web Jobs - Triggered from queue - triggered or continuous?

查看:82
本文介绍了Azure Web作业-从队列触发-是触发还是连续?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个已创建的网络作业,并且想部署到Azure。但是,在创建配置时,我对此感到困惑。



这是一个网络作业,是由天蓝色的存储队列触发的。



但是当我天蓝色地创建Web作业时,我对选择感到困惑...我的选择是触发式或连续式。 / p>

如果我选择连续,我会选择单或多。



如果选择已触发,则可以选择预定或手动。我不希望使用排程表,也不确定手册的含义是什么……这似乎也不对。



我知道网络职业从天蓝色队列触发的事件实际上是轮询而不是触发的,因此,似乎连续是正确的选择。但是我不确定。



所以问题是...当创建从Azure队列触发的Web作业时,正确的部署配置是什么?

p>

解决方案

听起来您正在使用Azure WebJobs SDK 。在SDK场景中,即使触发了您的各个功能,WebJob仍会连续运行(即,您的exe继续运行并进行自己的内部触发)。因此,您想要的是连续多重。在大多数情况下,没有理由使用单例,并且直到您扩展到多个实例时,它才有意义。


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?

解决方案

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.

这篇关于Azure Web作业-从队列触发-是触发还是连续?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆