在AppFabric中托管长时间运行的进程 [英] Host long-running processes in AppFabric

查看:96
本文介绍了在AppFabric中托管长时间运行的进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我们有一个应用服务器实现为具有WCF服务外观的Windows服务,以及可由调度程序激活的长期运行的多线程进程。我们正考虑将服务转移到AppFabric,但我们不确定
是否适合托管长期运行的非WCF(WWF)组件。 IIS是不适合托管此类流程的地方。


在AppFabric中实现/托管非服务流程的任何建议或架构指南是什么?


谢谢。


 

解决方案


您可以在AppFab中创建长时间运行的WCF WOrklow服务,但是必须通过服务调用激活它。


我构建一个概念验证我在哪里有一个通过调用Start方法激活的WCF工作流服务。然后它将在循环单元中运行,调用Stop方法。 (也可以添加Pause和Resume方法。)


概念验证的工作原理是我在AppFab中运行了一个Windows服务样式服务,但如果它是良好的建筑实践与否是另一个问题......


问候,


Alan


 


Currently we have an application server implemented as a Windows Service with WCF service facade and long-running multi-threaded processes that could be activated by scheduler. We are thinking about moving services to AppFabric but we are not sure that it is a right place for hosting long-running non-WCF(WWF) components. There is steriotip that IIS is not right place for hosting such processes.

Are where any recomendations or architectural guidelines for implementing/hosting non-service processes in AppFabric?

Thanks.

 

解决方案

Hi,

You can create long running WCF WOrklow Services in AppFab, thay will have to be activated by a service call though.

I build a proof-of-concept where I had a WCF Workflow services that was activated by a call to a Start method. It would then run in a loop unitill the Stop method was called. (It would also be possible to add Pause and Resume methods).

The proof-of-concept worked in that I had a Windows Service style service running in AppFab, but if it is a good architectural practice or not is another question...

Regards,

Alan

 


这篇关于在AppFabric中托管长时间运行的进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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