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
Ad

More Related Content

What's hot (20)

Block Level and File Level
Block Level and File LevelBlock Level and File Level
Block Level and File Level
Integral university, India
 
Deductive databases
Deductive databasesDeductive databases
Deductive databases
John Popoola
 
Real time scheduling - basic concepts
Real time scheduling - basic conceptsReal time scheduling - basic concepts
Real time scheduling - basic concepts
Student
 
Client-Server Computing
Client-Server ComputingClient-Server Computing
Client-Server Computing
Cloudbells.com
 
Implementation issues software engineering
Implementation issues software engineeringImplementation issues software engineering
Implementation issues software engineering
rishi ram khanal
 
Distributed DBMS - Unit 6 - Query Processing
Distributed DBMS - Unit 6 - Query ProcessingDistributed DBMS - Unit 6 - Query Processing
Distributed DBMS - Unit 6 - Query Processing
Gyanmanjari Institute Of Technology
 
A Reference architecture for the Internet of things
A Reference architecture for the Internet of things A Reference architecture for the Internet of things
A Reference architecture for the Internet of things
WSO2
 
Cloud computing lab experiments
Cloud computing lab experimentsCloud computing lab experiments
Cloud computing lab experiments
richendraravi
 
Database fragmentation
Database fragmentationDatabase fragmentation
Database fragmentation
Punjab College Of Technical Education
 
Lec1,2
Lec1,2Lec1,2
Lec1,2
alaa223
 
remote procedure calls
  remote procedure calls  remote procedure calls
remote procedure calls
Ashish Kumar
 
Distributed DBMS - Unit 1 - Introduction
Distributed DBMS - Unit 1 - IntroductionDistributed DBMS - Unit 1 - Introduction
Distributed DBMS - Unit 1 - Introduction
Gyanmanjari Institute Of Technology
 
Wot
WotWot
Wot
PRAVEENSRC2113003011
 
Memory management
Memory managementMemory management
Memory management
Rajni Sirohi
 
Nano computing.
Nano computing.Nano computing.
Nano computing.
Sunny Sundeep
 
Introduction to parallel processing
Introduction to parallel processingIntroduction to parallel processing
Introduction to parallel processing
Page Maker
 
Mining single dimensional boolean association rules from transactional
Mining single dimensional boolean association rules from transactionalMining single dimensional boolean association rules from transactional
Mining single dimensional boolean association rules from transactional
ramya marichamy
 
Message and Stream Oriented Communication
Message and Stream Oriented CommunicationMessage and Stream Oriented Communication
Message and Stream Oriented Communication
Dilum Bandara
 
Cloud Computing_Unit 1- Part 1.pptx
Cloud Computing_Unit 1- Part 1.pptxCloud Computing_Unit 1- Part 1.pptx
Cloud Computing_Unit 1- Part 1.pptx
Vivek Shelke
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage Systems
Wayne Jones Jnr
 
Deductive databases
Deductive databasesDeductive databases
Deductive databases
John Popoola
 
Real time scheduling - basic concepts
Real time scheduling - basic conceptsReal time scheduling - basic concepts
Real time scheduling - basic concepts
Student
 
Client-Server Computing
Client-Server ComputingClient-Server Computing
Client-Server Computing
Cloudbells.com
 
Implementation issues software engineering
Implementation issues software engineeringImplementation issues software engineering
Implementation issues software engineering
rishi ram khanal
 
A Reference architecture for the Internet of things
A Reference architecture for the Internet of things A Reference architecture for the Internet of things
A Reference architecture for the Internet of things
WSO2
 
Cloud computing lab experiments
Cloud computing lab experimentsCloud computing lab experiments
Cloud computing lab experiments
richendraravi
 
remote procedure calls
  remote procedure calls  remote procedure calls
remote procedure calls
Ashish Kumar
 
Introduction to parallel processing
Introduction to parallel processingIntroduction to parallel processing
Introduction to parallel processing
Page Maker
 
Mining single dimensional boolean association rules from transactional
Mining single dimensional boolean association rules from transactionalMining single dimensional boolean association rules from transactional
Mining single dimensional boolean association rules from transactional
ramya marichamy
 
Message and Stream Oriented Communication
Message and Stream Oriented CommunicationMessage and Stream Oriented Communication
Message and Stream Oriented Communication
Dilum Bandara
 
Cloud Computing_Unit 1- Part 1.pptx
Cloud Computing_Unit 1- Part 1.pptxCloud Computing_Unit 1- Part 1.pptx
Cloud Computing_Unit 1- Part 1.pptx
Vivek Shelke
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage Systems
Wayne Jones Jnr
 

Similar to Web apps architecture (20)

Lec 4.ppt
Lec 4.pptLec 4.ppt
Lec 4.ppt
Sami Mughal
 
J2 ee archi
J2 ee archiJ2 ee archi
J2 ee archi
saurabhshertukde
 
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
 
MVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVCMVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVC
Anton Krasnoshchok
 
Software Architecture - Architecture Styles and Patterns-1.pdf
Software Architecture - Architecture Styles and Patterns-1.pdfSoftware Architecture - Architecture Styles and Patterns-1.pdf
Software Architecture - Architecture Styles and Patterns-1.pdf
jordantsagmo
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
Pattern oriented architecture for web based architecture
Pattern oriented architecture for web based architecturePattern oriented architecture for web based architecture
Pattern oriented architecture for web based architecture
shuchi tripathi
 
Web technology and commerce unit 2
Web technology and commerce unit 2Web technology and commerce unit 2
Web technology and commerce unit 2
arun0501
 
Android DesignArchitectures.pptx
Android DesignArchitectures.pptxAndroid DesignArchitectures.pptx
Android DesignArchitectures.pptx
SafnaSaff1
 
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
Bosco Technical Training Society, Don Bosco Technical School (Aff. GGSIP University, New Delhi)
 
Interaction-Oriented Architecture.pptx
Interaction-Oriented Architecture.pptxInteraction-Oriented Architecture.pptx
Interaction-Oriented Architecture.pptx
Godwin Monserate
 
MVC(Model View Controller),Web,Enterprise,Mobile
MVC(Model View Controller),Web,Enterprise,MobileMVC(Model View Controller),Web,Enterprise,Mobile
MVC(Model View Controller),Web,Enterprise,Mobile
naral
 
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
 
MVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVCMVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVC
Anton Krasnoshchok
 
Software Architecture - Architecture Styles and Patterns-1.pdf
Software Architecture - Architecture Styles and Patterns-1.pdfSoftware Architecture - Architecture Styles and Patterns-1.pdf
Software Architecture - Architecture Styles and Patterns-1.pdf
jordantsagmo
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
Nidhi Saurav
 
Pattern oriented architecture for web based architecture
Pattern oriented architecture for web based architecturePattern oriented architecture for web based architecture
Pattern oriented architecture for web based architecture
shuchi tripathi
 
Web technology and commerce unit 2
Web technology and commerce unit 2Web technology and commerce unit 2
Web technology and commerce unit 2
arun0501
 
Android DesignArchitectures.pptx
Android DesignArchitectures.pptxAndroid DesignArchitectures.pptx
Android DesignArchitectures.pptx
SafnaSaff1
 
Interaction-Oriented Architecture.pptx
Interaction-Oriented Architecture.pptxInteraction-Oriented Architecture.pptx
Interaction-Oriented Architecture.pptx
Godwin Monserate
 
MVC(Model View Controller),Web,Enterprise,Mobile
MVC(Model View Controller),Web,Enterprise,MobileMVC(Model View Controller),Web,Enterprise,Mobile
MVC(Model View Controller),Web,Enterprise,Mobile
naral
 
Ad

More from Tanmoy Barman (7)

Java rmi
Java rmiJava rmi
Java rmi
Tanmoy Barman
 
Jini
JiniJini
Jini
Tanmoy Barman
 
JDBC: java DataBase connectivity
JDBC: java DataBase connectivityJDBC: java DataBase connectivity
JDBC: java DataBase connectivity
Tanmoy Barman
 
Java server pages
Java server pagesJava server pages
Java server pages
Tanmoy Barman
 
java Servlet technology
java Servlet technologyjava Servlet technology
java Servlet technology
Tanmoy Barman
 
introduction to channel borrowing scheme in cellular networks
introduction to channel borrowing scheme in cellular networksintroduction to channel borrowing scheme in cellular networks
introduction to channel borrowing scheme in cellular networks
Tanmoy Barman
 
INTRODUCTION TO CLOUD COMPUTING
INTRODUCTION TO CLOUD COMPUTINGINTRODUCTION TO CLOUD COMPUTING
INTRODUCTION TO CLOUD COMPUTING
Tanmoy Barman
 
JDBC: java DataBase connectivity
JDBC: java DataBase connectivityJDBC: java DataBase connectivity
JDBC: java DataBase connectivity
Tanmoy Barman
 
java Servlet technology
java Servlet technologyjava Servlet technology
java Servlet technology
Tanmoy Barman
 
introduction to channel borrowing scheme in cellular networks
introduction to channel borrowing scheme in cellular networksintroduction to channel borrowing scheme in cellular networks
introduction to channel borrowing scheme in cellular networks
Tanmoy Barman
 
INTRODUCTION TO CLOUD COMPUTING
INTRODUCTION TO CLOUD COMPUTINGINTRODUCTION TO CLOUD COMPUTING
INTRODUCTION TO CLOUD COMPUTING
Tanmoy Barman
 
Ad

Recently uploaded (20)

Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptxDevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
DevOpsDays Atlanta 2025 - Building 10x Development Organizations.pptx
Justin Reock
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 

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.