问题描述
在 azure 上始终运行进程的方法是什么?在 Windows 上,它是 Windows 服务,但是我是否必须获得虚拟机才能拥有一个正在运行的进程?我查看了各种计算选项,但似乎没有一个与 Windows 服务的功能相匹配.有没有不同的方法来实现 Windows 服务在 azure 上的作用?
what is the way to have an always running process on azure? on windows it is windows service, but do i have to get a virtual machine just to have a single running process? I have looked at various compute options but none of them seems to match what a windows service does. Is there a different way to achieve what a windows service does on azure?
推荐答案
您应该查看持续运行的 Web 作业.请参阅 在 Microsoft 上使用 WebJobs 运行后台任务蔚蓝.
You should look at continuously-running web jobs.See Running Background tasks with WebJobs on Microsoft Azure.
其他选择是 PaaS 云服务工作者角色和 Azure Service Fabric 可靠服务 - 但如果您只需要基本服务,这些可能就有点过分了.
Other choices are PaaS cloud services worker roles and Azure Service Fabric reliable services - but these are likely overkill if you just want a basic service.
这篇关于什么相当于 azure 上的 Windows 服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!