Java web application in a Servlet container vs. standalone

前端 未结 6 858
悲哀的现实
悲哀的现实 2021-01-01 10:00

What are the advantages of building a small Java web app to run in a Servlet container (like Tomcat) vs. building a standalone Java app with a built-in web server and runnin

6条回答
  •  情深已故
    2021-01-01 10:22

    The in-process Servlet containers are the containers which work inside the JVM of Web server, these provides good performance but poor in scalibility.

    The out-of-process containers are the containers which work in the JVM outside the web server. poor in performance but better in scalibility In the case of out-of-process containers, web server and container talks with each other by using the some standard mechanism like IPC.

    In addition to these types of containers, there is 3rd type which is stand-alone servlet containers. These are an integral part of the web server.

提交回复
热议问题