logo

Server: Web Vs. Application


Show

Server may be a device or a computer virus that receives and responds to the request made by another program, referred to as a client. It's wont to direct the network resources and also for running the program or software that gives services.

There are two sorts of servers:

  • Web Server
  • Application Server

Web Server

Web servers carry only web or servlet containers. It is often made for servlet, jsp, struts, jsf etc. It cannot be used for EJB.

It is a computer where online content is often stored. Generally web servers are often wont to host the online sites but they also used other web servers also like FTP, email, storage, and gaming etc.

Some Web Servers Examples are: Apache Tomcat and Resin.

Web Server Working

It can answer the client appeal in either of the subsequent two possible ways:

  • Generating response by using the script and communicating with the database.
  • Sending files to the client related to the requested URL.

Representation of Web Server with the help of block diagram is given below:

Important points

  • If the requested website at the client side isn't found, then the web server will send the HTTP response: Error 404 Not found.
  • When the online server searches the requested page, if the requested page is found then it'll send it to the client with an HTTP response.
  • If the client requests another resource then the web server will contact the application server and data is stored for constructing the HTTP response.

Application Server

Application servers carry Web and EJB containers. It is often made for servlet, jsp, struts, jsf, ejb etc. It's a component based product that lies within the middle-tier of a server centric architecture.

It provides the middleware services for state maintenance and security, alongside persistence and data access. It's a kind of server designed to put in, operate and host associated services and applications for the IT services, end users and organizations.

Representation of Application Server is given below with the help of block diagram:

Some Application Servers Example Are:

  • JBoss: From the JBoss community- An Open-source server
  • Glassfish: Initially, Provided by Sun Microsystem. And Now won by Oracle.
  • Weblogic: It is Provided by Oracle. And It is more secure.
  • Websphere: It is Provided by IBM.