简体   繁体   English

是否可以通过Windows Azure Pack或App Fabric获得本地解决方案的Azure Worker角色

[英]Is Azure Worker Role for an on-premise solution available through Windows Azure Pack or App Fabric

I am writing an application that will be deployed both to the cloud and to on-premise data-centres (for those clients who, essentially, don't yet trust the cloud with their data. 我正在编写一个应用程序,该应用程序将同时部署到云和本地数据中心(对于那些基本上还不信任其数据对云的客户)。

If i choose to go MS Azure I can use the new cloud project types with their Web and Worker roles. 如果我选择使用MS Azure,则可以将新的云项目类型与Web和Worker角色一起使用。 But how can I get the worker roles running for the on-premise variant? 但是,如何才能为本地变体运行工作角色?

Do I have to write my own host (say as a windows service)? 我是否需要编写自己的主机(例如Windows服务)? This is not ideal as it requires additional code and deployment. 这是不理想的,因为它需要其他代码和部署。

Is there an Azure compatible approach, say in the Windows Azure Pack or the App Fabric stuff (is App Fabric still current?) that doesn't require the full setup of the private cloud ? 是否有不需要Azure兼容的方法,例如Windows Azure Pack或App Fabric中的东西(App Fabric仍然是最新的?),不需要完全设置私有云?

This doesn't exist in Azure Pack. 这在Azure Pack中不存在。

There is no need to try and have a Worker Role on premise. 无需尝试在内部设置“工作者角色”。 All you need to do is to have a Virtual Machine that you install a Windows Service on. 您需要做的就是拥有一个安装Windows服务的虚拟机。

It's easy to create a Windows Service using Topshelf . 使用Topshelf创建Windows服务很容易。

Deployment of a Windows Service with Topshelf is actually much easier than deployments for Worker Roles because you just run the .exe you create with the install and then with the start arguments. 实际上,使用Topshelf部署Windows服务要比使用辅助角色进行部署容易得多,因为您只需运行通过install创建的.exe,然后使用start参数即可。

Because of this you actually need less code than for a Worker Role since you don't need a second wrapper project. 因此,实际上您需要的代码比工作角色的代码少,因为您不需要第二个包装器项目。

While I haven't used Windows Azure Pack before it does seem capable of providing this functionality in house, however the requirements and setup procedures are intense and it is certainly geared towards enterprise. 尽管我以前从未使用过Windows Azure Pack,但它似乎确实能够提供此功能,但是要求和设置过程都很严格,而且肯定适合企业使用。

A better option is for you to create a console app that triggers the OnStart() and Run() functions for your WorkerRole based on your OS Task Scheduler. 一个更好的选择是让您创建一个控制台应用程序,该应用程序基于OS Task Scheduler触发WorkerRole的OnStart()和Run()函数。

Not too much work in my opinion and you get to keep your WorkerRoles as is but just add the console app for any on premise solutions. 我认为没有太多工作,您可以保持WorkerRoles不变,而只需为任何内部解决方案添加控制台应用程序即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过Windows Azure Connect将Azure托管的Ruby on Rails应用程序连接到本地SQL Server - Connect Azure-hosted Ruby on Rails app to on-premise SQL Server through Windows Azure Connect Windows Phone 8通过Azure与本地Web服务的安全连接 - Windows Phone 8 secure connection through Azure, to an on-premise web service 从Windows Azure辅助角色转发HttpWebRequest-前提是wcf - Forward HttpWebRequest from Windows Azure worker role - on premise wcf 从Windows Azure工作者角色在Premise上连接到CRM 2011 - Connect to CRM 2011 on Premise from windows azure worker role 将Windows Azure连接到本地Active Directory - Connecting Windows Azure to On-Premise Active Directory 在 Linux 中创建 Azure Service Fabric 本地群集 - Create Azure Service Fabric on-premise cluster in Linux Windows Azure站点和本地虚拟目录应用程序可以使用相同的域吗? - Is it possible to use the same domain for a Windows Azure site and on-premise virtual directory app? Azure Stack 本地部署 - Azure Stack On-premise Deployment Windows性能计数器无法从C#获得(在Azure工作者角色上) - Windows Performance Counter not available from C# (on Azure worker role) 将本地AD扩展到Azure - Extend On-premise AD to Azure
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM