Professional Documents
Culture Documents
Application
Development
Tiered Architectures
System
A group
entity
Architecture
A style
An architectural history of
computing
1 tier architecture
2 tier architecture
3 tier architecture
Tiers of an architecture
Client
browser
<html>
...
</html>
Application
logictier
informationsystem
Presentation
tier
Visualise
Calculate
Resource
managementtier
Store
Presentation Tier
How the data should appear to the user and how the user
should interact with the interface
5
Services
Business logic
Business rules
Server
1 Tier Architectures
Application
logiclayer
Resource
managementlayer
informationsystem
Presentation
layer
Advantages:
easy to optimise performance
no context switching
no compatibility issues
no client developement, maintainance
and deployment cost
Disadvantages:
monolithic pieces of code (high
maintainance)
hard to modify lack of documentation
and qualified programmers
lack of qualified programmers for
these systems
9
2 - Tier Architectures
Client
Presentationlayer
1.7 p.12
Server
Applicationlogiclayer
Resourcemanagementlayer
10
Informationsystem
fig
2 - Tier Architectures
Advantages
Disadvantages
limited scalability
legacy problems (blown up clients)
11
3 - Tier Architectures
client
applicationlogiclayer
middleware
resourcemanagementlayer
12
informationsystem
presentation
layer
3 - Tier Architectures
integration logic
application logic
13
3 - Tier Architectures
Advantages
Disadvantages
14
3 - tier Architectures
presentation
layer
GUI clients
C++, VB, Java
Middleware
Server
applicationlogiclayer
middleware
resourcemanagementlayer
Databases
Legacy Systems
15
informationsystem
client
Middleware
Examples:
OMGs CORBA
J2EE - Java 2 Enterprise Edition
Microsofts .Net
16
Middleware features
Allows communication
Takes care of
17
Middleware features
18
n -tier
client
2 cases of n tier
Webbrowser
Webserver
informationsystem
HTMLfilter
applicationlogiclayer
middleware
resourcemanagementlayer
19
flexibility
functionality
possibilities for distribution
But:
Redundency increases
20
Dedicated Server
BROWSER
WEB
SERVER
Operating System
Resources
Servlet
CGI
Program
Files
Web Server
A computer (or software running on a
computer) on the Internet that listens for HTTP
requests, typically on port 80, and responds
with HTTP responses.
Static Content
Java Script
Used in millions of Web pages to improve the design, validate
forms, detect browsers, create cookies, and much more
HTML DOM
The HTML Document Object Model (HTML DOM) defines a
standard way for accessing and manipulating HTML documents
The DOM presents an HTML document as a tree structure, and
gives access to the structure through a set of objects
DHTML
DHTML is a combination of technologies (HTML, JavaScript, etc)
used to create dynamic and interactive Web sites
VBScript
Visual Basic based script
25
Dynamic Content
26
Dynamic Content
27
Dynamic Content
Server-side scripting
ASP
ASP.NET
JSP
JSFaces
PHP
Servlets
28
29
Microsoft IIS
Packaged
31
32
Exploit
33
GPUs
JavaScript
CSS
HTML
HTTP-Response
Client
Server
HTTP-Request
Logic
Look
Structure
JavaScript
CSS
HTML
Server
HTTP-Request
Logic
Look
Structure
JavaScript
CSS
HTML
ASP.NET
PHP
JSP
ColdFusion
CGI
Server
HTTP-Request
Logic
Look
Structure
JavaScript
CSS
HTML
ASP.NET (VB.NET/C#)
PHP
JSP (Java)
ColdFusion (CFML)
CGI (PERL/C++)
ASP.NET (VB.NET/C#)
Server
Client
HTTP-Request
Logic
Look
Structure
PHP
JSP (Java)
ColdFusion (CFML)
CGI (PERL/C++)
JavaScript
CSS
HTML
Access
SQL Server 2000/2005
Data
Oracle
MySQL
XML
JavaScript
CSS
HTML
ASP.NET (VB.NET/C#)
Serve
r
PHP
JSP (Java)
ColdFusion (CFML)
CGI (PERL/C++)
ADO.NET 2.0
Data
Access
Access
SQL Server 2000/2005
Data
Oracle
MySQL
XML
JavaScript
CSS
HTML
ASP.NET (VB.NET/C#)
Serve
r
PHP
JSP (Java)
ColdFusion (CFML)
CGI (PERL/C++)
Data
Access
Access
SQL Server 2000/2005
Data
Oracle
MySQL
XML
Web Technologies
HTTP / HTTPS (URL, GET/POST)
Client-side:
Server-side:
PHP
JSP