Azure VM,云服务还是Web作业? [英] Azure VM, Cloud service or Web job?

查看:73
本文介绍了Azure VM,云服务还是Web作业?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Azure很陌生,并且不确定要实现此目标需要什么服务:

I am quite new to Azure and not quite sure what service I need to achieve this:

我想做的是开发一个应用程序/服务来执行一些计算任务.我已经创建了一个Web API,用于将数据发送到我的数据库.我将使用数据库中的数据执行一些计算并将结果存储回数据库中.此应用程序/服务将连续运行.

What I want to do is developing an application/service to do some computing tasks. I have created a web API for sending data to my database. I will use the data from my database to perform some computing and store results back in the database. This app/service will be run continuously.

我不确定是否应该使用Web作业,云服务或虚拟机.他们似乎都能实现我想要的目标.或者也许我应该考虑一些事情?

I am not sure if I should use a web job or a cloud service or a virtual machine. They all seem to be able to achieve what I want.. or maybe there are things I should consider?

非常感谢,

LT

推荐答案

应该可以通过Web Jobs,Cloud Services和VM来实现像这样的常规数据处理工作.这些解决方案代表Azure平台中不同级别的控制,并且取决于对所需过程的控制程度.

A general data processing job like this, should be achievable through both Web Jobs, Cloud Services and VMs. These solutions represents different levels of control in the Azure platform, and it depends on how much control over the process you need.

网站仅允许您在IIS(Web服务器)中运行代码,因此它们不适合在不中断的情况下运行后台进程.因此,已创建Web作业以帮助用户为其网站运行后台进程.您将无法控制高级功能,例如内存消耗或用户权限,但是在您的情况下,这可能不是必需的.我会先尝试一下.

Web Sites only lets you run code inside IIS (the Web Server), so they are not suitable for running background processes without interruption. Therefore, Web Jobs have been created to help users run background processes for their Web Sites. You will not be able to control advanced things, like memory consumption or user permissions, but in your case this is probably not required. I would try this first.

如果Web Jobs不够用,具有辅助角色的Cloud Service应该为您提供对计算机资源的必要控制,并且可以在提升的用户权限下运行它.最技术性的方法是运行VM,但随后您还需要控制诸如自行打补丁之类的事情.仅当您需要对程序的安装方式有非常特定的控制时才有用,而在您的情况下则不必要.

If Web Jobs is not enough, a Cloud Service with a worker role should give you necessary control over the machine resources, and it can be run with elevated user permissions. The most technical way is to run a VM, but then you also need to control things like patching on your own. This is only useful if you need very specific control over how your programs are installed, and should not be necessary in your case.

这篇关于Azure VM,云服务还是Web作业?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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