SlideShare a Scribd company logo
1-tier,2-tier, 3-tier and MVC
Different Web apps Architectures
by Tanmoy Barman
Contents
 Why n-tier?
 Layers.
 Monolithic or 1-tier architecture.
 2-tier architecture.
 3-tier architecture.
 Need of MVC.
 MVC architecture.
 MVC components.
 Comparison between MVC and 3-tier.
Why n-tier?
 Need of e-commerce solutions; increase in users
and merchant sites all over the world.
 Applications should be scalable, user-friendly,
have tight security and easily maintainable.
Layers
 Layer means logical.
 Tier means physical.
 Generally there are three layers:-
 Presentation
 Business
 Data access layer
Layers
 Presentation Layer:- involves with client and
application interaction. Provides user friendly
interface for the clients.
 Business Layer:- contains the application code or
the core functionalities of the application or what
the application will perform.
 Data access Layer:- involves with the maintaining
database and storage of data.
Monolithic or 1-tier
Monolithic or 1-tier
 Presentation layer, Business layer and Data
Access layer are tightly connected.
 As the layers are tightly connected(depends on
each other), if any of the layer code are changed
then other layers should be affected and the
codes in other layers need to be changed.
Monolithic or 1-tier
 Traditional approaches of the applications are
based on this type of architecture.
 Typically implementation of 1-tier architecture can
be a C program running in a computer.
2-tier
2-tier
 In this type of architectures the presentation layer, the
business logic layer are separated from the data
access layer.
 The advantages of this layer is that the code of the
data access layer can be changed any time without
affecting the code of the other layer i.e. the whole
database and the layer can be changed anytime.
 The database(i.e. the data access layer) can be
present anywhere around but the other two layers
should be together(tightly connected).
2-tier
 As the presentation and the business logic are
still connected they should be present at the
client side to work together; due to the
concentration of the client this type of client is
called thick client.
 Problems faced by this type of architecture is the
client should always get the updated copies of the
application if there is a change in the application
codes or application developer modifies the
application.
 The application developer may not want to give
the code to the relatively third parities even if the
code is pre compiled.
2-tier
 Another problem is that the client may not want to
install the code into his/her machine for using a
particular application.
3-tier
3-tier
 In this type of architecture the presentation layer,
the business logic layer and the data access layer
are separated from each other and are present
on three different tiers therefore they are loosely
connected.
 The main advantages is that any change in the
code in one layer will not affect the other layers
and the platform can also be changed
independently.
 Now the web designer can concentrate on the
design of the user interface i.e. the presentation
logic, the application developer concentrate on
developing the application i.e. the business logic
and the database manager can handle the
3-tier
 Today’s application are based on 3-tier
architecture which are scalable, easy to maintain,
components are reusable and faster
development.
Need of MVC Architecture
 Need to access the data from different context
such as mobiles, touch screen, desktop, etc.
 Need to show the data in different context such
as mobiles, touch screen, desktop, etc.
 Need to show multiple views of the same data
such as Thumbnails, List or details.
 Need to change the designs without changing the
core business logic.
MVC Solutions
 Separate the core business logic form the
presentation logic.
 Separate views for the same data.
MVC Architecture
MVC Components
 Model: It contains the core functionalities and the
business logic of the application. It accepts the
state query from the model and controller and it
provides the updated information to the view
component.
 View: This component is responsible for the
presentation logic and the user interaction
between the application. The model provides
different information to different user which can
be represented in different ways. The main work
of the view component is to provide the suitable
information to the user.
MVC Components
 Controller: It accepts the user input through the
view component and process them and if any
changes are required then it perform the changes
after that it response to the client.
MVC Vs. 3-tier
 In MVC architecture the components
communicate directly with each other in order to
maintain a coherent user interaction but in case
of 3-tier the presentation layer(front end)
communicates with the data access layer(back
end) through the business layer(middleware).
 In 3-tier the Layers are present on three different
tiers or machines where as in MVC the layers are
present on single tier or machines.
Thank You

More Related Content

PPTX
Library management system using java technology
PDF
[오픈소스컨설팅]Session Clustering
PDF
Lecture-1: Introduction to web engineering - course overview and grading scheme
DOCX
Library Management System
PPTX
News portal
PPTX
Introduction to SQL
PDF
Understanding and controlling transaction logs
PPT
9. Object Relational Databases in DBMS
Library management system using java technology
[오픈소스컨설팅]Session Clustering
Lecture-1: Introduction to web engineering - course overview and grading scheme
Library Management System
News portal
Introduction to SQL
Understanding and controlling transaction logs
9. Object Relational Databases in DBMS

What's hot (20)

DOCX
Library management sytem
PPT
3 Tier Architecture
PDF
Object oriented analysis and design unit- i
PPTX
Chapter 1 introduction to sql server
PPT
Vb basics
PPT
Uml - An Overview
PPTX
Dbms normalization
PPT
LiquiBase
PPT
Oracle Apex Overview
PDF
11.project online library management system
PPTX
laravel.pptx
PPTX
Content management system
PPT
Distributed database management systems
PDF
SQL Overview
PPTX
Presentation on "An Introduction to ReactJS"
PDF
Model View Controller (MVC)
PPTX
Introduction to ajax
PDF
ER-Diagram Library System
PDF
History and Versions of Java Programming.pdf
Library management sytem
3 Tier Architecture
Object oriented analysis and design unit- i
Chapter 1 introduction to sql server
Vb basics
Uml - An Overview
Dbms normalization
LiquiBase
Oracle Apex Overview
11.project online library management system
laravel.pptx
Content management system
Distributed database management systems
SQL Overview
Presentation on "An Introduction to ReactJS"
Model View Controller (MVC)
Introduction to ajax
ER-Diagram Library System
History and Versions of Java Programming.pdf
Ad

Similar to Web apps architecture (20)

PPT
Lec 4.ppt
PPT
J2 ee archi
PPTX
2-Tier and 3-Tier Architecture of Enterprise Resource Planning
PPT
MVC Pattern. Flex implementation of MVC
PDF
Software Architecture - Architecture Styles and Patterns-1.pdf
DOC
N tier architecture
DOC
N tier architecture
DOC
N tier architecture
DOC
N tier architecture
DOC
N tier architecture
DOC
N tier architecture
DOC
N tier architecture
DOC
N tier architecture
DOC
N tier architecture
PPTX
Pattern oriented architecture for web based architecture
PDF
Web technology and commerce unit 2
PPTX
Android DesignArchitectures.pptx
PPTX
Interaction-Oriented Architecture.pptx
PPT
MVC(Model View Controller),Web,Enterprise,Mobile
Lec 4.ppt
J2 ee archi
2-Tier and 3-Tier Architecture of Enterprise Resource Planning
MVC Pattern. Flex implementation of MVC
Software Architecture - Architecture Styles and Patterns-1.pdf
N tier architecture
N tier architecture
N tier architecture
N tier architecture
N tier architecture
N tier architecture
N tier architecture
N tier architecture
N tier architecture
Pattern oriented architecture for web based architecture
Web technology and commerce unit 2
Android DesignArchitectures.pptx
Interaction-Oriented Architecture.pptx
MVC(Model View Controller),Web,Enterprise,Mobile
Ad

More from Tanmoy Barman (7)

PPSX
Java rmi
PPSX
PPSX
JDBC: java DataBase connectivity
PPSX
Java server pages
PPTX
java Servlet technology
DOCX
introduction to channel borrowing scheme in cellular networks
PPT
INTRODUCTION TO CLOUD COMPUTING
Java rmi
JDBC: java DataBase connectivity
Java server pages
java Servlet technology
introduction to channel borrowing scheme in cellular networks
INTRODUCTION TO CLOUD COMPUTING

Recently uploaded (20)

PPTX
A Presentation on Artificial Intelligence
PDF
Machine learning based COVID-19 study performance prediction
PDF
Approach and Philosophy of On baking technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPT
Teaching material agriculture food technology
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
cuic standard and advanced reporting.pdf
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Cloud computing and distributed systems.
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Modernizing your data center with Dell and AMD
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
A Presentation on Artificial Intelligence
Machine learning based COVID-19 study performance prediction
Approach and Philosophy of On baking technology
Per capita expenditure prediction using model stacking based on satellite ima...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Spectral efficient network and resource selection model in 5G networks
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Teaching material agriculture food technology
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
cuic standard and advanced reporting.pdf
Big Data Technologies - Introduction.pptx
Cloud computing and distributed systems.
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
NewMind AI Weekly Chronicles - August'25 Week I
Modernizing your data center with Dell and AMD
Chapter 3 Spatial Domain Image Processing.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Digital-Transformation-Roadmap-for-Companies.pptx

Web apps architecture

  • 1. 1-tier,2-tier, 3-tier and MVC Different Web apps Architectures by Tanmoy Barman
  • 2. Contents  Why n-tier?  Layers.  Monolithic or 1-tier architecture.  2-tier architecture.  3-tier architecture.  Need of MVC.  MVC architecture.  MVC components.  Comparison between MVC and 3-tier.
  • 3. Why n-tier?  Need of e-commerce solutions; increase in users and merchant sites all over the world.  Applications should be scalable, user-friendly, have tight security and easily maintainable.
  • 4. Layers  Layer means logical.  Tier means physical.  Generally there are three layers:-  Presentation  Business  Data access layer
  • 5. Layers  Presentation Layer:- involves with client and application interaction. Provides user friendly interface for the clients.  Business Layer:- contains the application code or the core functionalities of the application or what the application will perform.  Data access Layer:- involves with the maintaining database and storage of data.
  • 7. Monolithic or 1-tier  Presentation layer, Business layer and Data Access layer are tightly connected.  As the layers are tightly connected(depends on each other), if any of the layer code are changed then other layers should be affected and the codes in other layers need to be changed.
  • 8. Monolithic or 1-tier  Traditional approaches of the applications are based on this type of architecture.  Typically implementation of 1-tier architecture can be a C program running in a computer.
  • 10. 2-tier  In this type of architectures the presentation layer, the business logic layer are separated from the data access layer.  The advantages of this layer is that the code of the data access layer can be changed any time without affecting the code of the other layer i.e. the whole database and the layer can be changed anytime.  The database(i.e. the data access layer) can be present anywhere around but the other two layers should be together(tightly connected).
  • 11. 2-tier  As the presentation and the business logic are still connected they should be present at the client side to work together; due to the concentration of the client this type of client is called thick client.  Problems faced by this type of architecture is the client should always get the updated copies of the application if there is a change in the application codes or application developer modifies the application.  The application developer may not want to give the code to the relatively third parities even if the code is pre compiled.
  • 12. 2-tier  Another problem is that the client may not want to install the code into his/her machine for using a particular application.
  • 14. 3-tier  In this type of architecture the presentation layer, the business logic layer and the data access layer are separated from each other and are present on three different tiers therefore they are loosely connected.  The main advantages is that any change in the code in one layer will not affect the other layers and the platform can also be changed independently.  Now the web designer can concentrate on the design of the user interface i.e. the presentation logic, the application developer concentrate on developing the application i.e. the business logic and the database manager can handle the
  • 15. 3-tier  Today’s application are based on 3-tier architecture which are scalable, easy to maintain, components are reusable and faster development.
  • 16. Need of MVC Architecture  Need to access the data from different context such as mobiles, touch screen, desktop, etc.  Need to show the data in different context such as mobiles, touch screen, desktop, etc.  Need to show multiple views of the same data such as Thumbnails, List or details.  Need to change the designs without changing the core business logic.
  • 17. MVC Solutions  Separate the core business logic form the presentation logic.  Separate views for the same data.
  • 19. MVC Components  Model: It contains the core functionalities and the business logic of the application. It accepts the state query from the model and controller and it provides the updated information to the view component.  View: This component is responsible for the presentation logic and the user interaction between the application. The model provides different information to different user which can be represented in different ways. The main work of the view component is to provide the suitable information to the user.
  • 20. MVC Components  Controller: It accepts the user input through the view component and process them and if any changes are required then it perform the changes after that it response to the client.
  • 21. MVC Vs. 3-tier  In MVC architecture the components communicate directly with each other in order to maintain a coherent user interaction but in case of 3-tier the presentation layer(front end) communicates with the data access layer(back end) through the business layer(middleware).  In 3-tier the Layers are present on three different tiers or machines where as in MVC the layers are present on single tier or machines.