11

我可以看到在 Windows Azure 中主要有 3 个选项来安排作业。批处理、调度程序和 Web 作业。是否有任何链接或视频解释有什么区别以及何时使用和好处?提前致谢

4

2 回答 2

23

So far I didn't see anything official from azure.com or msdn, so let me take a stab.

Azure Batch - is a way to run parallel (typically compute intensive) HPC style job on the cloud. Batch pitches the value of parallel job running as a service so you don't worry about provisioning/managing large cluster. A typical scenario is, go encoding those 10K H.264 videos from 1080p to 720p - instead of spinning up 200 VMs you just configure the command line and specify the location of those 10k videos (blobs).

Azure Scheduler is a way to run recurring job at specified time. It's Windows Task Scheduler in cloud. For example, start a cloud service 8AM every weekday and shut it down at 6PM.

Azure Web Job is focusing on doing background job for Azure Website. It's working daemon web server farm in cloud. An example is - compress all images uploaded from the webpage.

于 2015-02-25T04:43:46.190 回答
7

为了补充一丁的答案,Azure SchedulerAzure WebJobs实际上在这个意义上协同工作并相互完成。

Azure WebJobs将托管正在执行工作的代码/可执行文件。 Azure Scheduler将安排何时运行您的工作 --> WebJob。

开始创建一个计划的 Azure WebJob,它将创建这两个资源。

于 2015-02-27T18:51:23.070 回答