ASP.NET MVC 4应用程序调用Windows服务

ASP.NET MVC 4应用程序调用Windows服务

问题描述:

我们正在使用分布式架构为我们的项目。在UI层是驻留在另一台服务器上一台服务器和业务层。我们正在创造业务层的Windows服务。
是否有可能从另一个调用服务器应用程序的用户界面的Windows服务。
怎么办呢?

We are using distributed architecture for our project. In which UI layer is reside on one server and Business Layer on another server. We are creating Windows service of Business layer. Is it possible to call the windows service from another server UI application. How to do it?

有几个选项用于与Windows服务进行通信。

There are a couple of options for communicating with a windows service.


  1. 系统服务总线

  2. 在PROC主办的WebAPI

  3. 自托管的WCF服务

  4. SignalR 以消息之间客户和服务器

  1. A service bus
  2. In Proc hosted WebAPI
  3. Self hosted WCF Service
  4. SignalR to message between client and server