SlideShare a Scribd company logo
1 of 18
1
Subject: Web engineering
University of Education Okara Campus
Inam Ul Haq
Inam.bth@gmail.com
3-Tier Architecture
3-Tier Architecture
3 tier architecture is a three way interaction in Client-
Server environment
User interface stored in Client
Business Application Logic is used as one more server
The Data is stored in Database server
2
Evolution of 3-Tier Architecture
Single Tier
Dual Tier
3-Tier
………..
N Tier
Tiers we are going to
Study
3
Single Tier Architecture
• Time of Huge Main-Frame computers
• Single Computer manage all processes
• All Resources Attached to the same computer
• Access via dumb Terminals
4
Advantages and Disadvantages
Advantage
• Simple
• Efficient
• Uncomplicated
Disadvantages
• Very Expensive
5
Dual Tier Architecture
• Time of Personal computers
• The Client Server model was Born!
• Logical System Component most of which are on the client
6
Advantages and Disadvantages
Advantages
• Less expensive then Main-Frame
Disadvantages
• The connection to the database server are very expensive
• One user can connect to the user of server at a time
• Server need more time to respond existing connections
• Cost-ineffective: many users can use their connection 2-
3% of time
7
3-Tier Architectures
A three-tier architecture is a client-server architecture in which
the functional process, data access, computer data storage
and user interface are developed and maintained as
independent modules on separate platforms
8
3-Tier Architectures(Cont…)
•Presentation Tier:
displays information related to services
available on a website.
•Application Tier:
this tier is pulled from the presentation
tier. It controls application functionality
by performing detailed processing.
•Data Tier:
Houses database servers where
information is stored and retrieved.
9
Scalability
• The application server can be deployed on many machines
• Database no longer require connection from every client
Data Integrity
• Middle tier can ensure that only valid data is allowed to be
updated in the database
Improved security
• Because client does not have direct access to the database
therefore data is more secure
Advantages
10
Reduced distribution
• Updating is only need for application server and no need for
distributed on client
Maintainability
• Changes to the components in one layer have no effect on any
others layers
Reliability
• A 3-Tier architecture, if deployed on multiple servers, makes it
easier to increase reliability of a system by implementing
multiple levels of redundancy.
Advantages (Cont...)
11
Disadvantages
Increased complexity / efforts
• 3-tier architecture is more complex to build compared to 2-
tier architecture
12
Why 3-Tier Architecture ?
Needs of new world’s applications(Web Apps)
 Business will increasingly compete being the first to
market with new electronic goods and services
 Companies will create virtual corporations through
alliances with a shifting set of partners
 Roles and relationships btw. enterprises will shift
frequently
13
Use of artificial
intelligence
Why 3-Tier Architecture ? (Cont..)
 Meets the requirements of large-scale internet and
intranet client/server applications
 Is easier to manage and deploy on the network
 Provides better security
14
Web Applications
Web applications are a very common example of 3 tier applications.
The presentation tier consists of HTML, CSS and JavaScript, the
application logic tier runs on a web server in form of Java Servlets,
JSP, ASP.NET, PHP etc., and the data tier consists of a database of
some kind (mysql, postgresql, a noSQL database etc.). Here is a
diagram of a typical 3 tier web application
15
Mobile Applications
• Actually, it is the same principle with mobile applications that
are not standalone applications. A mobile application that
connects to a server typically connect to a web server and
send and receive data. Here is a diagram of a typical 3 tier
mobile application
16
Another 3-Tier Model
• You could also think of this as a 4-tier architecture:
• The database management system (DBMS)
• A persistence manager ( primary interface for application
components.)
• The main application software
• A GUI
17
• The purpose of N tier architecture is to insulate the different
layers of the application from each other. The GUI client
doesn't know how the server is working internally, and the
server doesn't know how the database server works internally
etc. They just communicate via standard interfaces.
Another 3-Tier Model (cont..)
18

More Related Content

What's hot

What's hot (20)

Mvc architecture
Mvc architectureMvc architecture
Mvc architecture
 
Introduction to c#
Introduction to c#Introduction to c#
Introduction to c#
 
Introduction to React Native
Introduction to React NativeIntroduction to React Native
Introduction to React Native
 
The Full Stack Web Development
The Full Stack Web DevelopmentThe Full Stack Web Development
The Full Stack Web Development
 
Coding standards
Coding standardsCoding standards
Coding standards
 
Js ppt
Js pptJs ppt
Js ppt
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
Web api
Web apiWeb api
Web api
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
Web Design & Development - Session 1
Web Design & Development - Session 1Web Design & Development - Session 1
Web Design & Development - Session 1
 
Angular 8
Angular 8 Angular 8
Angular 8
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net framework
 
JavaScript - Chapter 12 - Document Object Model
  JavaScript - Chapter 12 - Document Object Model  JavaScript - Chapter 12 - Document Object Model
JavaScript - Chapter 12 - Document Object Model
 
Object Oriented Programming In .Net
Object Oriented Programming In .NetObject Oriented Programming In .Net
Object Oriented Programming In .Net
 
Web Engineering
Web EngineeringWeb Engineering
Web Engineering
 
Front end web development
Front end web developmentFront end web development
Front end web development
 
Asp.net state management
Asp.net state managementAsp.net state management
Asp.net state management
 
Asp.net architecture
Asp.net architectureAsp.net architecture
Asp.net architecture
 
PHP - Introduction to File Handling with PHP
PHP -  Introduction to  File Handling with PHPPHP -  Introduction to  File Handling with PHP
PHP - Introduction to File Handling with PHP
 

Viewers also liked (20)

3 Tier Architecture
3 Tier Architecture3 Tier Architecture
3 Tier Architecture
 
2 tier and 3 tier architecture
2 tier and 3 tier architecture2 tier and 3 tier architecture
2 tier and 3 tier architecture
 
3 Tier Architecture
3  Tier Architecture3  Tier Architecture
3 Tier Architecture
 
3 Tier Architecture
3 Tier Architecture3 Tier Architecture
3 Tier Architecture
 
6 3 tier architecture php
6 3 tier architecture php6 3 tier architecture php
6 3 tier architecture php
 
3 tier architecture
3 tier architecture3 tier architecture
3 tier architecture
 
3 tier architecture
3 tier architecture3 tier architecture
3 tier architecture
 
3 tier data warehouse
3 tier data warehouse3 tier data warehouse
3 tier data warehouse
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
 
E business n_tier_arch
E business n_tier_archE business n_tier_arch
E business n_tier_arch
 
Groovy technology ecosystem
Groovy technology ecosystemGroovy technology ecosystem
Groovy technology ecosystem
 
penanganan kesalahan, optimasi kode, tabel informasi (Teknik Kompilasi)
penanganan kesalahan, optimasi kode, tabel informasi (Teknik Kompilasi)penanganan kesalahan, optimasi kode, tabel informasi (Teknik Kompilasi)
penanganan kesalahan, optimasi kode, tabel informasi (Teknik Kompilasi)
 
Chap 10(structure and unions)
Chap 10(structure and unions)Chap 10(structure and unions)
Chap 10(structure and unions)
 
IS 151 Lecture 3
IS 151 Lecture 3IS 151 Lecture 3
IS 151 Lecture 3
 
IS 139 Lecture 7
IS 139 Lecture 7IS 139 Lecture 7
IS 139 Lecture 7
 
IS 151 - Lecture 3
IS 151 - Lecture 3IS 151 - Lecture 3
IS 151 - Lecture 3
 
Truth table analysis
Truth table analysisTruth table analysis
Truth table analysis
 
Chapter one
Chapter oneChapter one
Chapter one
 
IS 151 Lecture 2
IS 151 Lecture 2IS 151 Lecture 2
IS 151 Lecture 2
 
Cd unit i
Cd unit iCd unit i
Cd unit i
 

Similar to 3 tier architecture

3 tierarchitecture-091103063446-phpapp01
3 tierarchitecture-091103063446-phpapp013 tierarchitecture-091103063446-phpapp01
3 tierarchitecture-091103063446-phpapp01asif khan
 
Introduction and Basics to web technology .pptx
Introduction and Basics to web technology .pptxIntroduction and Basics to web technology .pptx
Introduction and Basics to web technology .pptxLEENASAHU42
 
Client Server Architecture...pptx
Client Server Architecture...pptxClient Server Architecture...pptx
Client Server Architecture...pptxpraladbaral
 
Client server architecture
Client server architectureClient server architecture
Client server architectureRituBhargava7
 
Client computing evolution ppt11
Client computing evolution ppt11Client computing evolution ppt11
Client computing evolution ppt11Tech_MX
 
Enterprise java unit-1_chapter-2
Enterprise java unit-1_chapter-2Enterprise java unit-1_chapter-2
Enterprise java unit-1_chapter-2sandeep54552
 
enterprisejavaunit-1chapter-2-210914075956.pdf
enterprisejavaunit-1chapter-2-210914075956.pdfenterprisejavaunit-1chapter-2-210914075956.pdf
enterprisejavaunit-1chapter-2-210914075956.pdfEidTahir
 
client server architecture
client server architecture client server architecture
client server architecture Saurabh Soni
 
Odbc and data access objects
Odbc and data access objectsOdbc and data access objects
Odbc and data access objectsSangeetha Sg
 
Part 1 network computing
Part 1 network computingPart 1 network computing
Part 1 network computingLinh Nguyen
 
Data stream processing and micro service architecture
Data stream processing and micro service architectureData stream processing and micro service architecture
Data stream processing and micro service architectureVyacheslav Benedichuk
 
Distributed information sys
Distributed information sysDistributed information sys
Distributed information sysMeena Chauhan
 

Similar to 3 tier architecture (20)

3 tierarchitecture-091103063446-phpapp01
3 tierarchitecture-091103063446-phpapp013 tierarchitecture-091103063446-phpapp01
3 tierarchitecture-091103063446-phpapp01
 
3tier architecture
3tier architecture3tier architecture
3tier architecture
 
3tier architecture
3tier architecture3tier architecture
3tier architecture
 
Introduction and Basics to web technology .pptx
Introduction and Basics to web technology .pptxIntroduction and Basics to web technology .pptx
Introduction and Basics to web technology .pptx
 
Client Server Architecture...pptx
Client Server Architecture...pptxClient Server Architecture...pptx
Client Server Architecture...pptx
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
 
lec-01-WP.pdf
lec-01-WP.pdflec-01-WP.pdf
lec-01-WP.pdf
 
Technical Architectures
Technical ArchitecturesTechnical Architectures
Technical Architectures
 
Client computing evolution ppt11
Client computing evolution ppt11Client computing evolution ppt11
Client computing evolution ppt11
 
Enterprise java unit-1_chapter-2
Enterprise java unit-1_chapter-2Enterprise java unit-1_chapter-2
Enterprise java unit-1_chapter-2
 
enterprisejavaunit-1chapter-2-210914075956.pdf
enterprisejavaunit-1chapter-2-210914075956.pdfenterprisejavaunit-1chapter-2-210914075956.pdf
enterprisejavaunit-1chapter-2-210914075956.pdf
 
client server architecture
client server architecture client server architecture
client server architecture
 
Clientserver
ClientserverClientserver
Clientserver
 
Odbc and data access objects
Odbc and data access objectsOdbc and data access objects
Odbc and data access objects
 
Part 1 network computing
Part 1 network computingPart 1 network computing
Part 1 network computing
 
Data stream processing and micro service architecture
Data stream processing and micro service architectureData stream processing and micro service architecture
Data stream processing and micro service architecture
 
4. system models
4. system models4. system models
4. system models
 
Distributed information sys
Distributed information sysDistributed information sys
Distributed information sys
 
Network administration Book
Network administration BookNetwork administration Book
Network administration Book
 
SOFTWARE COMPUTING
SOFTWARE COMPUTINGSOFTWARE COMPUTING
SOFTWARE COMPUTING
 

Recently uploaded

Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 

Recently uploaded (20)

FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 

3 tier architecture

  • 1. 1 Subject: Web engineering University of Education Okara Campus Inam Ul Haq Inam.bth@gmail.com 3-Tier Architecture
  • 2. 3-Tier Architecture 3 tier architecture is a three way interaction in Client- Server environment User interface stored in Client Business Application Logic is used as one more server The Data is stored in Database server 2
  • 3. Evolution of 3-Tier Architecture Single Tier Dual Tier 3-Tier ……….. N Tier Tiers we are going to Study 3
  • 4. Single Tier Architecture • Time of Huge Main-Frame computers • Single Computer manage all processes • All Resources Attached to the same computer • Access via dumb Terminals 4
  • 5. Advantages and Disadvantages Advantage • Simple • Efficient • Uncomplicated Disadvantages • Very Expensive 5
  • 6. Dual Tier Architecture • Time of Personal computers • The Client Server model was Born! • Logical System Component most of which are on the client 6
  • 7. Advantages and Disadvantages Advantages • Less expensive then Main-Frame Disadvantages • The connection to the database server are very expensive • One user can connect to the user of server at a time • Server need more time to respond existing connections • Cost-ineffective: many users can use their connection 2- 3% of time 7
  • 8. 3-Tier Architectures A three-tier architecture is a client-server architecture in which the functional process, data access, computer data storage and user interface are developed and maintained as independent modules on separate platforms 8
  • 9. 3-Tier Architectures(Cont…) •Presentation Tier: displays information related to services available on a website. •Application Tier: this tier is pulled from the presentation tier. It controls application functionality by performing detailed processing. •Data Tier: Houses database servers where information is stored and retrieved. 9
  • 10. Scalability • The application server can be deployed on many machines • Database no longer require connection from every client Data Integrity • Middle tier can ensure that only valid data is allowed to be updated in the database Improved security • Because client does not have direct access to the database therefore data is more secure Advantages 10
  • 11. Reduced distribution • Updating is only need for application server and no need for distributed on client Maintainability • Changes to the components in one layer have no effect on any others layers Reliability • A 3-Tier architecture, if deployed on multiple servers, makes it easier to increase reliability of a system by implementing multiple levels of redundancy. Advantages (Cont...) 11
  • 12. Disadvantages Increased complexity / efforts • 3-tier architecture is more complex to build compared to 2- tier architecture 12
  • 13. Why 3-Tier Architecture ? Needs of new world’s applications(Web Apps)  Business will increasingly compete being the first to market with new electronic goods and services  Companies will create virtual corporations through alliances with a shifting set of partners  Roles and relationships btw. enterprises will shift frequently 13 Use of artificial intelligence
  • 14. Why 3-Tier Architecture ? (Cont..)  Meets the requirements of large-scale internet and intranet client/server applications  Is easier to manage and deploy on the network  Provides better security 14
  • 15. Web Applications Web applications are a very common example of 3 tier applications. The presentation tier consists of HTML, CSS and JavaScript, the application logic tier runs on a web server in form of Java Servlets, JSP, ASP.NET, PHP etc., and the data tier consists of a database of some kind (mysql, postgresql, a noSQL database etc.). Here is a diagram of a typical 3 tier web application 15
  • 16. Mobile Applications • Actually, it is the same principle with mobile applications that are not standalone applications. A mobile application that connects to a server typically connect to a web server and send and receive data. Here is a diagram of a typical 3 tier mobile application 16
  • 17. Another 3-Tier Model • You could also think of this as a 4-tier architecture: • The database management system (DBMS) • A persistence manager ( primary interface for application components.) • The main application software • A GUI 17
  • 18. • The purpose of N tier architecture is to insulate the different layers of the application from each other. The GUI client doesn't know how the server is working internally, and the server doesn't know how the database server works internally etc. They just communicate via standard interfaces. Another 3-Tier Model (cont..) 18