简体   繁体   English

在IIS或Windows服务中托管我的服务?

[英]Host my service in IIS or windows service?

I have a couple of services, where one of them needs to be a singleton service. 我有几个服务,其中一个需要是单身人士服务。 The other services connect to this singleton service and the singleton service in turn makes calls back in to the instances of the other services. 其他服务连接到该单例服务,而单例服务又使呼叫返回到其他服务的实例。

My question: is it safe to move this scenario into IIS so I can make use of the new Windows Server Appfabric features? 我的问题:将这种情况迁移到IIS是否安全,这样我就可以利用Windows Server Appfabric的新功能了? I'm not sure how IIS handles instance management. 我不确定IIS如何处理实例管理。

I would go for IIS as well because compared to other hosting mechanisms you get a lot features for free: 我也会选择IIS,因为与其他托管机制相比,您可以免费获得许多功能:

  • process life-cycle management, 流程生命周期管理,
  • process recycling, 工艺回收,
  • shared hosting, 共享主机,
  • on-demand activation, 按需激活
  • health monitoring 健康监测

IIS should not be problem in your scenario. 在您的方案中,IIS应该不是问题。 If it already works with self hosting it should also work in IIS. 如果它已经可以自我托管,那么它也应该可以在IIS中工作。 You only need to be aware of some IIS management settings which control AppPool recycling etc. 您只需要了解一些控制AppPool回收的IIS管理设置即可。

Hosting in IIS is the way forward definitely. 在IIS中托管绝对是前进的道路。 Especially if you have AppFabric installed as you mentioned. 特别是如果您如上所述安装了AppFabric。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM