SlideShare a Scribd company logo
Two tier and
three tier
Name : Kashaf Naz
Reg : SP18-BSI-025
Two-Tier
Architecture:
+ The two-tier is based on Client
Server architecture. The two-tier
architecture is like client server
application. The direct
communication takes place
between client and server. There
is no intermediate between client
and server. Because of tight
coupling a 2 tiered application
will run faster.
Two-Tier Architecture:
The Two-tier architecture is divided into
two parts:
+ Client Application (Client Tier)
+ Database (Data Tier)
Two-
Tier Architecture:
+ On client application side the
code is written for saving
the data in the SQL server
database. Client sends the
request to server and it process
the request & send back with
data. The main problem of two
tier architecture is the server
cannot respond multiple request
same time, as a result it cause a
data integrity issue.
Two-Tier Architecture:
Advantages Disadvantages
• Easy to maintain and modification is bit
easy
• In two tier architecture application
performance will be degrade upon
increasing the users.
• Communication is faster • Cost-ineffective
Three-Tier
Architecture
+ Three-tier architecture typically
comprise a presentation tier,
a business or data access tier, and
a data tier. Three layers in the three tier
architecture are as follows:
• Client layer
• Business layer
• Data layer
1) Client layer
+ It is also called as Presentation layer which contains UI part of our
application. This layer is used for the design purpose where data is
presented to the user or input is taken from the user. For example designing
registration form which contains text box, label, button etc.
2) Business layer
+ In this layer all business logic written like validation of data, calculations,
data insertion etc. This acts as a interface between Client layer and Data
Access Layer. This layer is also called the intermediary layer helps to make
communication faster between client and data layer.
3) Data layer:
+ In this layer actual
database is comes in the
picture. Data Access
Layer contains methods
to connect with database
and to perform insert,
update, delete, get data
from database based on
our input data.
Advantages
High performance, lightweight persistent objects
Scalability – Each tier can scale horizontally
Performance – Because the Presentation tier can cache requests, network utilization
is minimized, and the load is reduced on the Application and Data tiers.
High degree of flexibility in deployment platform and configuration
Better Re-use
Improve Data Integrity
Improved Security – Client is not direct access to database.
Easy to maintain and modification is bit easy, won’t affect other modules
In three tier architecture application performance is good.
Disadvantages
+ Increase Complexity/Effort
Thank you

More Related Content

What's hot

Database security
Database securityDatabase security
Database security
Software Engineering
 
Database Design
Database DesignDatabase Design
Database Designlearnt
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMSkoolkampus
 
Database : Relational Data Model
Database : Relational Data ModelDatabase : Relational Data Model
Database : Relational Data Model
Smriti Jain
 
3 Level Architecture
3 Level Architecture3 Level Architecture
3 Level Architecture
Adeel Rasheed
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
Siti Ismail
 
Codd's rules
Codd's rulesCodd's rules
Codd's rulesMohd Arif
 
Database backup and recovery
Database backup and recoveryDatabase backup and recovery
Database backup and recovery
Anne Lee
 
Generalization and specialization
Generalization and specializationGeneralization and specialization
Generalization and specialization
Knowledge Center Computer
 
Introduction: Databases and Database Users
Introduction: Databases and Database UsersIntroduction: Databases and Database Users
Introduction: Databases and Database Users
sontumax
 
SQL commands
SQL commandsSQL commands
SQL commands
GirdharRatne
 
database language ppt.pptx
database language ppt.pptxdatabase language ppt.pptx
database language ppt.pptx
Anusha sivakumar
 
Enhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) ModelingEnhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) Modeling
sontumax
 
6. Integrity and Security in DBMS
6. Integrity and Security in DBMS6. Integrity and Security in DBMS
6. Integrity and Security in DBMSkoolkampus
 
client server architecture
client server architecture client server architecture
client server architecture
Saurabh Soni
 
DBMS: Types of keys
DBMS:  Types of keysDBMS:  Types of keys
DBMS: Types of keys
Bharati Ugale
 
Decomposition using Functional Dependency
Decomposition using Functional DependencyDecomposition using Functional Dependency
Decomposition using Functional Dependency
Raj Naik
 
Relational Database Design
Relational Database DesignRelational Database Design
Relational Database Design
Archit Saxena
 
Introduction to data structure ppt
Introduction to data structure pptIntroduction to data structure ppt
Introduction to data structure ppt
NalinNishant3
 

What's hot (20)

Database security
Database securityDatabase security
Database security
 
Database Design
Database DesignDatabase Design
Database Design
 
2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS2. Entity Relationship Model in DBMS
2. Entity Relationship Model in DBMS
 
Database : Relational Data Model
Database : Relational Data ModelDatabase : Relational Data Model
Database : Relational Data Model
 
3 Level Architecture
3 Level Architecture3 Level Architecture
3 Level Architecture
 
trigger dbms
trigger dbmstrigger dbms
trigger dbms
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
 
Codd's rules
Codd's rulesCodd's rules
Codd's rules
 
Database backup and recovery
Database backup and recoveryDatabase backup and recovery
Database backup and recovery
 
Generalization and specialization
Generalization and specializationGeneralization and specialization
Generalization and specialization
 
Introduction: Databases and Database Users
Introduction: Databases and Database UsersIntroduction: Databases and Database Users
Introduction: Databases and Database Users
 
SQL commands
SQL commandsSQL commands
SQL commands
 
database language ppt.pptx
database language ppt.pptxdatabase language ppt.pptx
database language ppt.pptx
 
Enhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) ModelingEnhanced Entity-Relationship (EER) Modeling
Enhanced Entity-Relationship (EER) Modeling
 
6. Integrity and Security in DBMS
6. Integrity and Security in DBMS6. Integrity and Security in DBMS
6. Integrity and Security in DBMS
 
client server architecture
client server architecture client server architecture
client server architecture
 
DBMS: Types of keys
DBMS:  Types of keysDBMS:  Types of keys
DBMS: Types of keys
 
Decomposition using Functional Dependency
Decomposition using Functional DependencyDecomposition using Functional Dependency
Decomposition using Functional Dependency
 
Relational Database Design
Relational Database DesignRelational Database Design
Relational Database Design
 
Introduction to data structure ppt
Introduction to data structure pptIntroduction to data structure ppt
Introduction to data structure ppt
 

Similar to two tier and three tier

2-Tier and 3-Tier Architecture of Enterprise Resource Planning
2-Tier and 3-Tier Architecture of Enterprise Resource Planning2-Tier and 3-Tier Architecture of Enterprise Resource Planning
2-Tier and 3-Tier Architecture of Enterprise Resource Planning
S M Qamar Abbas
 
Client computing evolution ppt11
Client computing evolution ppt11Client computing evolution ppt11
Client computing evolution ppt11Tech_MX
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
Bhargav Amin
 
Chapter2
Chapter2Chapter2
Chapter2suks_87
 
Client/Server Architecture By Faisal Shahzad
Client/Server Architecture By Faisal Shahzad Client/Server Architecture By Faisal Shahzad
Client/Server Architecture By Faisal Shahzad
Faisal Shehzad
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
RituBhargava7
 
Topic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information SystemsTopic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information Systemssanjoysanyal
 
Odbc and data access objects
Odbc and data access objectsOdbc and data access objects
Odbc and data access objects
Sangeetha Sg
 
Three-tier-architecture-with-database.pptx
Three-tier-architecture-with-database.pptxThree-tier-architecture-with-database.pptx
Three-tier-architecture-with-database.pptx
DuyTrn880338
 
05_system architecture
05_system architecture05_system architecture
05_system architecture
Jadavsejal
 
3 tier architecture
3 tier architecture3 tier architecture
3 tier architecture
tahir khan
 
Client Server Architecture...pptx
Client Server Architecture...pptxClient Server Architecture...pptx
Client Server Architecture...pptx
praladbaral
 
3 tierarchitecture-091103063446-phpapp01
3 tierarchitecture-091103063446-phpapp013 tierarchitecture-091103063446-phpapp01
3 tierarchitecture-091103063446-phpapp01
asif 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 .pptx
LEENASAHU42
 
Distributed information sys
Distributed information sysDistributed information sys
Distributed information sys
Meena Chauhan
 
client-server.pptx
client-server.pptxclient-server.pptx
client-server.pptx
EbukaChikodi
 
Lecture5 architecture styles.pdf
Lecture5 architecture styles.pdfLecture5 architecture styles.pdf
Lecture5 architecture styles.pdf
ssuser9d62d6
 

Similar to two tier and three tier (20)

2-Tier and 3-Tier Architecture of Enterprise Resource Planning
2-Tier and 3-Tier Architecture of Enterprise Resource Planning2-Tier and 3-Tier Architecture of Enterprise Resource Planning
2-Tier and 3-Tier Architecture of Enterprise Resource Planning
 
Client server architecture in .net by varun tiwari
Client server architecture in .net by varun tiwariClient server architecture in .net by varun tiwari
Client server architecture in .net by varun tiwari
 
Client computing evolution ppt11
Client computing evolution ppt11Client computing evolution ppt11
Client computing evolution ppt11
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
 
Chapter2
Chapter2Chapter2
Chapter2
 
Client/Server Architecture By Faisal Shahzad
Client/Server Architecture By Faisal Shahzad Client/Server Architecture By Faisal Shahzad
Client/Server Architecture By Faisal Shahzad
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
 
Topic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information SystemsTopic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information Systems
 
Odbc and data access objects
Odbc and data access objectsOdbc and data access objects
Odbc and data access objects
 
Three-tier-architecture-with-database.pptx
Three-tier-architecture-with-database.pptxThree-tier-architecture-with-database.pptx
Three-tier-architecture-with-database.pptx
 
3 tier architecture
3 tier architecture3 tier architecture
3 tier architecture
 
05_system architecture
05_system architecture05_system architecture
05_system architecture
 
3 tier architecture
3 tier architecture3 tier architecture
3 tier architecture
 
Client Server Architecture...pptx
Client Server Architecture...pptxClient Server Architecture...pptx
Client Server Architecture...pptx
 
3 tierarchitecture-091103063446-phpapp01
3 tierarchitecture-091103063446-phpapp013 tierarchitecture-091103063446-phpapp01
3 tierarchitecture-091103063446-phpapp01
 
3 tier architecture
3 tier architecture3 tier architecture
3 tier 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
 
Distributed information sys
Distributed information sysDistributed information sys
Distributed information sys
 
client-server.pptx
client-server.pptxclient-server.pptx
client-server.pptx
 
Lecture5 architecture styles.pdf
Lecture5 architecture styles.pdfLecture5 architecture styles.pdf
Lecture5 architecture styles.pdf
 

More from Kashafnaz2

AI Computer vision
AI Computer visionAI Computer vision
AI Computer vision
Kashafnaz2
 
Commands and create account
Commands and create accountCommands and create account
Commands and create account
Kashafnaz2
 
GIT AND GITHUB
GIT AND GITHUBGIT AND GITHUB
GIT AND GITHUB
Kashafnaz2
 
Business idea / Bioinformatics startup
Business idea / Bioinformatics startupBusiness idea / Bioinformatics startup
Business idea / Bioinformatics startup
Kashafnaz2
 
EVOLUTION / CONVERSATONS IN EVOLUTION THEORY 
EVOLUTION / CONVERSATONS IN EVOLUTION THEORY EVOLUTION / CONVERSATONS IN EVOLUTION THEORY 
EVOLUTION / CONVERSATONS IN EVOLUTION THEORY 
Kashafnaz2
 
what is Epigenetics and It's Functionality
what is Epigenetics and It's Functionalitywhat is Epigenetics and It's Functionality
what is Epigenetics and It's Functionality
Kashafnaz2
 
Fatty acid catabolism
Fatty acid catabolismFatty acid catabolism
Fatty acid catabolism
Kashafnaz2
 
PCR presentation
PCR presentationPCR presentation
PCR presentation
Kashafnaz2
 
Predict activity of short antimicrobial peptides
Predict activity of short antimicrobial peptidesPredict activity of short antimicrobial peptides
Predict activity of short antimicrobial peptides
Kashafnaz2
 

More from Kashafnaz2 (9)

AI Computer vision
AI Computer visionAI Computer vision
AI Computer vision
 
Commands and create account
Commands and create accountCommands and create account
Commands and create account
 
GIT AND GITHUB
GIT AND GITHUBGIT AND GITHUB
GIT AND GITHUB
 
Business idea / Bioinformatics startup
Business idea / Bioinformatics startupBusiness idea / Bioinformatics startup
Business idea / Bioinformatics startup
 
EVOLUTION / CONVERSATONS IN EVOLUTION THEORY 
EVOLUTION / CONVERSATONS IN EVOLUTION THEORY EVOLUTION / CONVERSATONS IN EVOLUTION THEORY 
EVOLUTION / CONVERSATONS IN EVOLUTION THEORY 
 
what is Epigenetics and It's Functionality
what is Epigenetics and It's Functionalitywhat is Epigenetics and It's Functionality
what is Epigenetics and It's Functionality
 
Fatty acid catabolism
Fatty acid catabolismFatty acid catabolism
Fatty acid catabolism
 
PCR presentation
PCR presentationPCR presentation
PCR presentation
 
Predict activity of short antimicrobial peptides
Predict activity of short antimicrobial peptidesPredict activity of short antimicrobial peptides
Predict activity of short antimicrobial peptides
 

Recently uploaded

Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 

Recently uploaded (20)

Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 

two tier and three tier

  • 1. Two tier and three tier Name : Kashaf Naz Reg : SP18-BSI-025
  • 2. Two-Tier Architecture: + The two-tier is based on Client Server architecture. The two-tier architecture is like client server application. The direct communication takes place between client and server. There is no intermediate between client and server. Because of tight coupling a 2 tiered application will run faster.
  • 3. Two-Tier Architecture: The Two-tier architecture is divided into two parts: + Client Application (Client Tier) + Database (Data Tier)
  • 4. Two- Tier Architecture: + On client application side the code is written for saving the data in the SQL server database. Client sends the request to server and it process the request & send back with data. The main problem of two tier architecture is the server cannot respond multiple request same time, as a result it cause a data integrity issue.
  • 5. Two-Tier Architecture: Advantages Disadvantages • Easy to maintain and modification is bit easy • In two tier architecture application performance will be degrade upon increasing the users. • Communication is faster • Cost-ineffective
  • 6. Three-Tier Architecture + Three-tier architecture typically comprise a presentation tier, a business or data access tier, and a data tier. Three layers in the three tier architecture are as follows: • Client layer • Business layer • Data layer
  • 7. 1) Client layer + It is also called as Presentation layer which contains UI part of our application. This layer is used for the design purpose where data is presented to the user or input is taken from the user. For example designing registration form which contains text box, label, button etc.
  • 8. 2) Business layer + In this layer all business logic written like validation of data, calculations, data insertion etc. This acts as a interface between Client layer and Data Access Layer. This layer is also called the intermediary layer helps to make communication faster between client and data layer.
  • 9. 3) Data layer: + In this layer actual database is comes in the picture. Data Access Layer contains methods to connect with database and to perform insert, update, delete, get data from database based on our input data.
  • 10. Advantages High performance, lightweight persistent objects Scalability – Each tier can scale horizontally Performance – Because the Presentation tier can cache requests, network utilization is minimized, and the load is reduced on the Application and Data tiers. High degree of flexibility in deployment platform and configuration Better Re-use Improve Data Integrity Improved Security – Client is not direct access to database. Easy to maintain and modification is bit easy, won’t affect other modules In three tier architecture application performance is good.