What is the benefit of developing the application as a windows service?

前端 未结 4 799
[愿得一人]
[愿得一人] 2021-01-03 22:31

I am going to develop an application which will process online data (comming through socket) and it does not need any user interaction.

I am thinking of a simple con

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-03 23:01

    On the top of my head:

    • You can control the user (and the rights associated with this user account) which starts the process
    • an Automatically started process means the desktop need to be on, not user logged, for the service to run
    • a policy on failure can be defined (try to restart n times run a specific program if fails)
    • a dependency can be defined (if you depend on other sevices)
    • you can wrap your scrip in an invisible windows
    • you can easily start/stop/restart the script (net start )

提交回复
热议问题