从Web应用程序中的Azure产卵新工艺 [英] spawn new process in Azure from web application

查看:83
本文介绍了从Web应用程序中的Azure产卵新工艺的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能运行Web应用程序在Azure中的新的.NET程序?是否限制呢?
我知道工人的角色,但它是不一样的。
我检查了Azure的documenation和coulnd't找到这样的信息。

Is it possible to run a new .net process from web application in Azure? Does it restrict it? I know about worker roles, but it's not the same. i have checked Azure documenation, and coulnd't find such information..

推荐答案

工作者角色和Web角色只是管理在部署包运行code虚拟机。您可以绝对的产卵过程,伴随着几乎任何你想要在虚拟机做。只要注意,只要你的角色的新实例出现,操作系统从一个干净的状态开始。当一个角色实例必须要重生由于一些类型的失败同样的事情。含义:您启动任务/ 的OnStart()需要照顾重新初始化注册表,运行安装程序(如有必要),然后产卵你的流程

Worker Roles and Web Roles are just managed virtual machines that run code in your deployment package. You can absolutely spawn processes, along with just about anything else you'd want to do in a virtual machine. Just note that whenever a new instance of your role comes up, the OS starts from a "clean" state. Same thing when a role instance has to be respawned due to some type of failure. Meaning: Your startup tasks / OnStart() need to take care of re-initializing registry, running installers (if necessary) and then spawning your processes.

使用虚拟机,你就设置好了一段时间,因为每个VM是的状态

With Virtual Machines, you would set things up one time, since each VM is stateful.

这篇关于从Web应用程序中的Azure产卵新工艺的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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