Académique Documents
Professionnel Documents
Culture Documents
A typical web application contains four tiers as depicted in the diagram below. Web
browsers on the client side render documents marked up in HTML. A web server for
processing and sending the data to the web browsers. An application server that computes
business logic and a database server program to store and retrieve data in a database. These
three types of server programs (web server, application server and database server) may run
on different servers or on the same server (machine).
Web browsers can run on most of the operating systems with limited hardware or software
requirements. They provide the graphical user interface for the clients to interact with the
web applications. A web browser provides the following features:
Use HTML forms and HTTP protocol to send requests and data to the web server
and download documents.
Maintenance of cookies.
Support plug-ins to support extra functions like: audio-video files, running java
application and flash animations.
The web servers main functionality is to retrieve and send data to the web browsers
through HTTP requests. The response of a web server is a HTML document or other web
documents. If the client requests a static HTML page, the web server retrieves the page
from its hard disk and sends it back. If the client requests a dynamic page, the web server
uses its extensions (the green box in the diagram) like servlets, JSP or other technologies to
generate the dynamic content. This may involve sending and retrieving data from the
database.
The application server is responsible for computing the business logic of the web
application, like carrying out a bank account fund transfer and computing the shortest route
from one city to another. If the web application is only accessed or used by a small group of
people, the application server will be absent and the business logic will be computed by the
server extensions (Servlets, JSP, PHP etc). But for a large web application like Facebook,
a separate application server will take advantage of a separate hardware server machine to
Factor / Type of
server
Definition
What is it?
Job
Functions
Application Server
Web Server