首页 > 代码库 > The different between app server and web server
The different between app server and web server
web server: handles http request
app server: handle the business logic of the application
1) web server
A Web server mainly deals with sending HTML for display in a Web browser.When a request comes into the Web server, the Web server simply passes the request to the program best able to handle it. The Web server doesn‘t provide any functionality beyond simply providing an environment in which the server-side program can execute and pass back the generated responses.
2) app server
An application server provides access to business logic for use by client application programs. The application program can use this logic just as it would call a method on an object
3) Example
Weblogic, Websphere------> app server
Apache-----> web server
Tomcat, IIS-----> a light-weight application server
Tomcat:早期的Tomcat是一个嵌入Apache内的JSP/Servlet解释引擎Apache+Tomcat就相当于IIS+ASP。后来的Tomcat已不再嵌入Apache内,Tomcat进程独立于Apache进程运行。 而且,Tomcat已经是一个独立的Servlet和JSP容器,业务逻辑层代码和界面交互层代码可以分离了。因此,有人把Tomcat叫做轻量级应用服务器。
IIS:微软早期的IIS,就是一个纯粹的Web服务器。后来,它嵌入了ASP引擎,可以解释VBScript和JScript服务器端代码了,这时,它就可以兼作应用服务器。当然,它与J2EE应用服务器根本无法相比,但是,从功能上说,从原理上说,它勉强可以称之为应用服务器。确切地说,它是兼有一点应用服务器功能的Web服务器。
The different between app server and web server