Diffrence between windows services running own processes vs shared process

一曲冷凌霜 提交于 2019-12-24 19:26:08

问题


I am working on project where we have decided to split our background tasks (network, CPU and IO intensive) into three windows services.

Now the question is, whether we should host all three services into a single process or create three independent services with their own processes.

Windows Service project template allows multiple services to be created, when installed they'll create separate entries in Service Control Manager (SCM) and can be controlled independently. The benefit here is better code management and code reuse.

However, if there is any performance drawback, which is the primary reason why we're having multiple services in the first place, I'd rather let go this benefit.

Please advise.


回答1:


My suggestion is to go for Seperarte windows services created using topshelf or other technology hence they are independent of paltform

Scalability easly scalable as per need ,if one service is being used more then other, then that one service can be scale up by running multiple instance of same.

parallel processing as services are independent they can work in prallel hence performance improved.



来源:https://stackoverflow.com/questions/45585585/diffrence-between-windows-services-running-own-processes-vs-shared-process

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!