开发者

long running process behind .NET service

开发者 https://www.devze.com 2022-12-22 00:11 出处:网络
I would like advice from the architecturally minded on the best framework or method for the following:

I would like advice from the architecturally minded on the best framework or method for the following:

server: a windows service in .NET

client: any mainstream language, a combination of .NET app/web app, and also some clients that are Ruby on Linux.

One idea I had was to have the Windows Service expose itself as a Web Servic开发者_Python百科e, and supply web service methods for starting a job, canceling the job, getting status, and getting results.

Any other ideas?


Ultimately the service needs a host. You can use a simple windows service or a hosting application. IIS is designed to do this. I would seriously consider hosting your service (web service or other protocols) inside an IIS hosted process. IIS has management support and the new AppFabric technology builds on this to give better management and scaling capability.

As the service itself I'd consider using on open web type architecture, such as REST to give you compatibility with as many different platforms.

Are your long running processes a workflow? If so you can leverage .net WF to do for you and WF in .net 4 is completely IIS hosted already.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号