Professional Documents
Culture Documents
ng
CSC 310
Week Two
STRUCTURE OF WEB APPLICATION
LEARNING OBJECTIVES
• Understand the basic concept of web application and
their architectures.
• Explore types of middleware, client/server computing,
layers and tiers of web applications as well as web
servers overview.
2
INTRODUCTION
• Webapps are applications that are accessed with a Web browser over a network such as the
Internet or Intranet.
• They are popular because of the ubiquity of the browser as a client (thin client).
• Similarly, the popularity is equally due to the possibility of updating and maintaining the
application without necessarily distributing and installing it on every available client.
• Webapps or Weblications as they are sometimes called are used to implement Webmail, online
retail sales, online auctions, discussion boards and Weblogs among others.
• Webapps generate a series of Web pages dynamically in a standard format supported by common
browsers such as the hypertext markup language (HTML).
5
• The database is the third
tier.
• The middle-tier may be multi-tiered.
That is, it can be composed of several
other servers with designated
responsibilities, hence the over-all
architecture is said to be N-tier.
• A fundamental rule in a 3-tier
architecture is that the client has no
direct line of communication with
the data tier. That is, all
communications are routed through
the middleware tier.
• The Web browser constitutes the client. It is a software application that enables a user to
display and interact with text, images and other information that are located on the Web
page or a local area network.
• Browsers can be used to access information on Web servers. Examples of Web browsers
are:
‒ MS Internet Explorer,
‒ Mozilla Firefox,
‒ Apple Safari,
‒ Google Chrome
‒ Netscape and Opera
‒ etc.
Structure of Web Applications 7
7
Web browsers communicate with Web servers using the hypertext
transfer protocol (HTTP) to fetch Web pages and it allows Web
browsers to submit information to Web servers as well as fetch Web
pages from them.
• The Web server takes all requests from the clients, responds to the
requests and serves the appropriate Web pages back to the clients.
• There are several web servers but the most prominent of them are
the Microsoft’s Internet Information Services (IIS) and Apache
HTTP Server.
• IIS is the world’s second most popular Web server behind the Apache
Server.
Apache serves over 68% of Websites and serves both static and
dynamic contents on the Web in a very reliable and secure
manner.
• They are responsible for storing, retrieving and manipulating the data in the database or
other repositories.
• Transaction processing may be done on both the server and the client,
hence the term, distributed processing.
Business
Data Access DB
• Thus, the application and database tiers are shielded behind the second
firewall termed the Internet zone (IZ).
a. Thin Client
• No application code, but relies on the server
• Uses Web and WAP browsers to display
Web (HTML)
WAP (WML)
• It is easier to maintain and support since no application code or data is
in them.
• It must be in constant communication with the server.
b. Fat Clients
It can operate for some time independent of the server
Presentation Application
Server Server DB server
DB
Request
Response DB
P B D
`
Client
1. Describe the basic structure of a Web application and explain the various
components involved.
4. Explain with the aid of a suitable diagram a 3-tier architecture stating the merits and
demerits of each of them.
26