Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>May be this is oversimplification, </p> <p>A web server is basically a HTTP server <strong>serving contents over http protocol</strong>. So a web server is simply about serving the contents over http protocol. A typical example would be <a href="http://httpd.apache.org/" rel="nofollow">Apache web server</a>. This is simply a file server. </p> <p>Now the question is <strong>where</strong> does the web server gets the <strong>contents from</strong> ? Possible sources are</p> <ol> <li><em>Static contents</em> (the contents like images/css etc) which are not generated on request but statically served. </li> <li><em>Dynamic contents</em>: Simply put, the contents to be served are generated upon the user request. </li> </ol> <p>For the static contents, the web server does not need anything as it simply reads the file and serves it.</p> <p>For dynamic contents, the web server might need help of <strong>additional components</strong> which will generate the contents to be served. </p> <p>Here the Application Server comes into picture. </p> <p>Now these <strong>additional components</strong> referred earlier, might interact with database or some other system etc. </p> <p>In a web environment where your website is exposed to <strong>huge number</strong> of users (intended/unintended), you need typical services like transaction/security/concurrency etc. so that the user get <strong>expected responses</strong> and do not see <strong>inconsistencies</strong> in the behavior of the application. </p> <p>An application server has inbuilt abilities to manage <strong>transaction/security/concurrency</strong>/resource management. generally these are referred as <strong>Managed services</strong> and environment offered by them is called <strong>Managed Environment</strong> where these basic services are managed by the application server and programmer does not have be bother for them. </p> <p>Application Server needs web servers or we can say Web servers use Application server's services to generate dynamic contents. </p> <p>For example, <strong>JBoss</strong> uses Tomcat as inbuilt web server. Whereas web logic has its own web server. <strong>Tomcat</strong> again can be called as <strong>application server</strong> (in principle) as it also offers managed environment for servlets (it manages concurrency and instance pool of servlets/JSPs ). </p> <p><em>Coming your your example of Spring:</em> An Application server will come inbuilt with transaction/security etc whether you need it or not. The Spring offers a very nice way handling this. Spring has all these things BUT you use what you need. Not just these, but just a Java Web Sever like Tomcat is sufficient to build a full fledged services that needs an application server. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload