A Server is a central place where information and programs are stored and accessed by applications over the network. Web Server is a server which accepts a request for data and sends the relevant document in return whereas Application Server contains a ejb container component as well to run the enterprise applications.
Following are the important differences between Web Server and Application Server.
|Sr. No.||Key||Web Server||Application Server|
|1||Purpose||Web Server contains Web container only.||Application Server contains Web Container plus EJB Container.|
|2||Useful||A web server is good in case of static contents like static html pages.||Applcation server is relevant in case of dynamic contents like bank websites.|
|3||Resource Consumption||Web server consumes less resources like CPU, Memory etc. as compared to application server.||Application server utilizes more resources.|
|4||Target Environment||Web Server provides the runtime environment for web applications.||Application server provides the runtime environment for enterprise applications.|
|5||Multithreading support||Multithreading is not supported.||Multithreading is supported.|
|6||Protocol(s) supported||Web Server supports HTTP Protocol.||Application Server suppots HTTP as well as RPC/RMI protocols.|
|7||Example||Apache Web Server.||Weblogic, JBoss.|