What is the difference between running an application as a service or deploying it on a container?

拟墨画扇 提交于 2020-01-05 08:14:18

问题


I need to install the following applications for our continuous delivery strategy:

Jenkins and Apache Archiva

But they offer:

to be install as a windows service or to be deploy in a container (i.e. Tomcat)

I was wondering if installing those applications as a service will give us better performance, reliability, security or whatsoever or the other way around or nothing at all

Thank you!


回答1:


From the official documentation for installing Jenkins on Windows:

If you're running on Windows it is good to run Jenkins as a service so it starts up automatically without requiring a user to log in. The easiest way is to run the Windows installer, linked from Jenkins' homepage. This also has the advantage of being easier to automate.

If you deploy Jenkins to Tomcat, then every time you start up your computer you might have to manually start Tomcat. In addition, if you want to stop or pause Jenkins running in a container you may have to manually shut down the container. This can lead to problems if not done properly.

On other hand, if Jenkins be running as a service, then Windows will handle most of these things for you. Unless you need to have very fine grain control over Jenkins I would leave it as a service. One example where you might want to deploy it in Tomcat would be if you wrote a custom plugin and wanted to test it.



来源:https://stackoverflow.com/questions/31443516/what-is-the-difference-between-running-an-application-as-a-service-or-deploying

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