3 Tier Architecture
3 Tier Architecture
3-Tier Architecture
Prepared By
Channu Kambalyal
Page 1 of 19
3-Tier Architecture
Table of Contents
Page 2 of 19
3-Tier Architecture
Local Terminals are responsible for display and keyboard for user input and viewing
capabilities. Local Terminals do not contain any intelligent processing capabilities.
Computer
Keyboard
Computer
Keyboard
Mainfram e
Computer
Keyboard
Computer
Keyboard
Server
Computer
Keyboard
Mainframe
Computer
Keyboard
Server
Computer
Keyboard
Page 3 of 19
3-Tier Architecture
Both data and transaction processing are divided between one or more computers
connected by a network, each computer playing a specific role in the system.
Replication
Ensures data at all sites in a distributed system reflects any changes made anywhere
in the system.
Computer
Computer
Da
Host s
ta
U Regional Centers sk
pd ta
g
at server tin
es
R ou
Computer
Database RoutineTasks Computer
Computer
s
sk
Data Replication Ta
g
in
out
server R
Computer
Database Routine tasks Computer
s
te
Computer
da Ro
uti
Up n e
t a ta
Da sk
s
Computer
Data Queries Computer
Computer
Host
Page 4 of 19
3-Tier Architecture
1. Database Server
2. Application Server
3. PC Workstation
Application
Server PC
Workstations
server
Computer
Database
Computer
Computer
Application
Services
Page 5 of 19
3-Tier Architecture
1. Mainframe
2. Application Servers
3. Workstations
Computer
Computer
GUI
Application Logic Computer
presentation
Application PC
Mainframe Workstations
Server
Computer
Database
Computer
Computer
Database retrievel
and updating Application PC
Server Workstations
Computer
Computer
Datab
ase
Computer
Page 6 of 19
3-Tier Architecture
Receive request
Request Inter-process for processing
processing from Communication
server
Pipes
FIFOs Relational
Message Queues Retreive and Database
Semaphores process data
Shared Memory
Sockets
Receive returned
Streams
values
Return values
Display output to
user
Page 7 of 19
3-Tier Architecture
• Optimizes Client Workstations for data input and presentation (e.g., graphics
and mouse support)
• Optimizes the Server for data processing and storage (e.g., large amount of
memory and disk space)
• Reduces Data Replication - Data stored on the servers instead of each client,
reducing the amount of data replication for the application.
Page 8 of 19
3-Tier Architecture
1. A Client PC and
2. A Database Server
2-Tier Considerations:
Client Workstation
Server Machine
Client Program
GUI presentation
logic Da
ta
database request re q
ue
Da s te
ta d
ret
u rn
File Access ed
Routines
Database Management
System
Client Workstation
sted
re que
a
Client Program Dat ed
turn
GUI presentation a ta re Database Files
D
logic
database request
File Access
Routines
Page 9 of 19
3-Tier Architecture
Performance: Performance:
• Adequate performance for low to medium • Inadequate performance for medium to
volume environments high volume environments, since
database server is required to perform
• Business logic and database are business logic. This slows down database
physically close, which provides higher operations on database server.
performance.
Page 10 of 19
3-Tier Architecture
1. A Client PC
2. An Application Server
3. A Database Server
Client Workstation
Page 11 of 19
3-Tier Architecture
Performance: Performance:
• Superior performance for medium to high • The physical separation of application
volume environments servers containing business logic
functions and database servers containing
databases may moderately affect
performance.
Page 12 of 19
3-Tier Architecture
9.0 Middleware
Simplifies 3-tier application development and administration by providing an extra application server
layer to manage communication between components.
Middleware Characteristics:
Server
Client
Application
Servers
Relational
Database
Page 13 of 19
3-Tier Architecture
Primary
Databasein Database
Riverwoods Appl.
Svc.
(Req.
BATCH Routers)
Processes About 500 to 4000
PC Clients in 7
centers
AIX - Tuxedo Based Application Server
Mainframe
Java Clients
Partial Application Logic
Key Features:
Page 14 of 19
3-Tier Architecture
Primary
Databasein Database
Riverwoods
Appl.
Svc.
(Req.
BATCH Routers)
Processes
Svc
Client) IIOP centers
Mainframe
Java Clients
Partial Application Logic
WebServices
Current Status:
• Currently out of about 800 TPS about 45% of transaction currently run through DAS and
remaining through WebSphere
• Expected date of migration is July/August 2005
Page 15 of 19
3-Tier Architecture
Java Clients
RMI - IIOP
EJBs
Java Clients
Mainframe
SOAP
WebServices
Java Clients
Dist. Batch Server
AIX based
Database Server
in 2 centers
Database
Key Features:
Page 16 of 19
3-Tier Architecture
Web Services
• A standardized way of integrating Web-based applications using the XML, SOAP, WSDL and
UDDI
• A means for businesses to communicate with each other and with clients
• Allow organizations to communicate data without intimate knowledge of each other's IT
systems behind the firewall
• Unlike traditional client/server models, such as a Web server/Web page system, Web services
do not provide the user with a GUI. Web services instead share business logic, data and
processes through a programmatic interface across a network. The applications interface, not
the users. Developers can then add the Web service to a GUI (such as a Web page or an
executable program) to offer specific functionality to users.
• Different applications from different sources can communicate with each other without time-
consuming custom coding, as all communication is in XML, Web services are not tied to any
one operating system or programming language. For example, Java can talk with Perl,
Windows applications can talk with UNIX applications
• XML – Extensible Markup Language - Used to tag the data
• SOAP – Simple Object Access Protocol - Used to transfer the data
• WSDL is used for describing the services available
• UDDI - Universal Description, Discovery and Integration - Used to list what services are
available.
• The J2EE Connector architecture enables an EIS vendor to provide a standard resource
adapter for its EIS.
• Resource adapter plugs into an application server, providing connectivity between the EIS, the
application server, and the enterprise application.
• An EIS vendor needs to provide just one standard resource adapter, which has the capability to
plug in to any application server that supports the J2EE Connector architecture.
See diagram of N-Tier Architecture for an overview of all these technologies and how they fit in.
Page 17 of 19
3-Tier Architecture
Internet
JSPs Servlets
XML
EJB Container Database
XML Integrators
EJB EJB EJB XML Engine
J
T
S EJB EJB EJB Connector
Framework External
Connector
Transaction
Systems
Java IDL JDBC JMS
Figure 11.1 Typical N-Tier Architecture using Web Services, JMS, Connectors, CORBA, XML
Databases, EJB, Servlets, JSP
Page 18 of 19
3-Tier Architecture
• Business Process Management (BPM) enables the integration of diverse applications and
human participants, as well as the coordinated exchange of information between trading
partners outside of the enterprise.
• Focuses on Business Process Documentation to Executable!
• Further Reference - BPMI.org
Page 19 of 19