Cis414 Week 2
Cis414 Week 2
Cis414 Week 2
ONI, A. A (Mrs)
1
INTRODUCTION
Webapps are applications that are accessed with a Web browser
over a network such as the Internet or an 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).
2 Structure of Web Applications
BASIC ARCHITECTURE
4
1. The Web Browser (Client)
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 Microsofts Internet Information Services (IIS) and
Apache HTTP Server.
7 Structure of Web Applications
a. IIS
This is a major component of the Microsoft Server operating
system, particularly, a component of its active server pages
(ASPs).
IIS is the worlds 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.
Possibly:
That is, a client with a zero code
layer that has no custom Web Browser
application code running on it.
WAP Browser
The server holds all the custom
application codes.
(Code Intermingled)
Business
Data Access
Data Access DB
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.
Presentation/Application/ DB Server
DB
Request
Response
DB
P B D
Client
DB
Request
Response DB
P B D
`
Client
Pros Cons
i. Convenient i. Less scalable
ii. Allow database server specialization ii. Hard to secure
iii. More expensive
25 Structure of Web Applications
3. Three-Tier Architecture
The three code layers exist on three (3) servers (Presentation,
Application and Database 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.