SlideShare a Scribd company logo
1 of 1
N-TIER ARCHITECTURE
The simplest examples of tier architecture are enumerated as 1-Tier, 2-Tier, and 3-Tier. 1-Tier Architecture is the simplest, single tier on
single user, and is the equivalent of running an application on a personal computer. All the required component to run the application are
located within it. User interface, business logic, and data storage are all located on the same machine. They are the easiest to design, but the
least scalable. Because they are not part of a network, they are useless for designing web applications. 2-Tier Architectures supply a basic
network between a client and a server. For example, the basic web model is a 2-Tier Architecture. A web browser makes a request from a
web server, which then processes the request and returns the desired response, in this case, web pages. This approach improves scalability
and divides the user interface from the data layers. However, it does not divide application layers so they can be utilized separately. This
makes them difficult to update and not specialized. The entire application must be updated because layers aren’t separated.
3-Tier Architecture is most commonly used to build web applications. In this model, the browser acts like a client, middleware or
an application server contains the business logic, and database servers handle data functions. This approach separates business logic from
display and data. But, it does not specialize functional layers. Its fine for prototypical or very simple web applications, but it doesn’t measure
up to the complexity demanded ofweb applications. The application server is still too broad, with too many functions grouped together. This
reduces flexibility and scalability. N-Tier Architectures provide finer granularity, which provides more modules to choose from as the
application is separated into smaller functions.
N-Tier and Example
Usually N-Tier Architecture begins as a 3-Tier model and is expanded. It provides finer granularity. Granularity is the ability of a system, in
this case, an application, to be broken down into smaller components or granules. The finer the granularity, the greater the flexibility of a
system. It can also be referred to as a system’s modularity. Therefore, it refers to the pulling apart of an application into separate layers or
finer grains.
One of the best examples of N-Tier Architecture in web applications is the popular shopping-cart web application. The client tier interacts with
the user through GUIs (Graphic User Interfaces) and with the application and the application server. In web applications, this client tier is a
web browser. In addition to initiating the request, the web browser also receives and displays code in dynamic HTML (Hypertext Markup
Language), the primary language of the World Wide Web. In a shopping cart web application, the presentation tier displays information
related to such services as browsing merchandise, purchasing, and shopping cart contents. It communicates with other tiers by outputting
results to the browser/client tier and all other tiers in the network. This layer calls custom tags throughout the network and to other networks.
It also calls database stored procedures and web services, all in the goal of providing a more sophisticated response. This layer glues the
whole application together and allows different nodes to communicate with each other and be displayed to the user through the browser. It is
located in the application server.
In N-Tier Architecture, the business logic tier is pulled out from the presentation tier and, as its own layer, it controls an application’s
functionality by performing detailed processing. For example, in our shopping cart example, this tier completes credit card authorization and
calculates things like shipping costs and sales tax. The tools used to encapsulate an application’s business logic into its own layer include web
services, custom tags, and stored procedures.
The business tier can also be considered the integration layer. Encapsulation allows the application to communicate with the data tier or the
business logic tier in a way that is intelligible to all nodes. Encapsulation is one of the principles of object-oriented programming (OOP) and
refers to an object’s ability to conceal its data and methods. Encapsulated objects only publish the external interface so any user interacting
with them only needs to understand the interface and can remain ignorant as to the internal specifications. This way a user can call all sorts
of services into action by calling the custom tag without having to know the code details of what made communication or implementation
possible. The services just have to be accessible in the custom tag library. Encapsulation in the integration tier also liberates the network from
just one vendor. The integration tier allows N-Tier Architecture to be vendor independent. In the shopping cart example, the application may
have a simple custom tag for searching inventory and providing the most up-to-date, detailed information.

More Related Content

What's hot

Contract First Modeling Services Using Uml
Contract First Modeling Services Using UmlContract First Modeling Services Using Uml
Contract First Modeling Services Using UmlRody Middelkoop
 
Content management software ppt for greet
Content management software ppt for greetContent management software ppt for greet
Content management software ppt for greetpaxchristiyouthforum
 
MortgageFlex System Solutions
MortgageFlex System SolutionsMortgageFlex System Solutions
MortgageFlex System SolutionsMortgageFlex
 
Pega CPBA Training course content
Pega CPBA Training course content Pega CPBA Training course content
Pega CPBA Training course content Ashock Roy
 
An introduction to end user software development
An introduction to end user software developmentAn introduction to end user software development
An introduction to end user software developmentEr. Nawaraj Bhandari
 
Instant queue manager_architecture_october2011
Instant queue manager_architecture_october2011Instant queue manager_architecture_october2011
Instant queue manager_architecture_october2011instant_technologies
 
Web–based crm application with interactive graphs
Web–based crm application with interactive graphsWeb–based crm application with interactive graphs
Web–based crm application with interactive graphsMike Taylor
 
Case Study for CRM Application For Sales Deaprtment
Case Study for CRM  Application For Sales DeaprtmentCase Study for CRM  Application For Sales Deaprtment
Case Study for CRM Application For Sales DeaprtmentMike Taylor
 
Managed Metadata - SPSChicago 2010
Managed Metadata - SPSChicago 2010Managed Metadata - SPSChicago 2010
Managed Metadata - SPSChicago 2010Hersh Ajgaonkar
 

What's hot (11)

Contract First Modeling Services Using Uml
Contract First Modeling Services Using UmlContract First Modeling Services Using Uml
Contract First Modeling Services Using Uml
 
Content management software ppt for greet
Content management software ppt for greetContent management software ppt for greet
Content management software ppt for greet
 
Case study on single sign on intranet portal on dotnetnuke
Case study on single sign on intranet portal on dotnetnukeCase study on single sign on intranet portal on dotnetnuke
Case study on single sign on intranet portal on dotnetnuke
 
MortgageFlex System Solutions
MortgageFlex System SolutionsMortgageFlex System Solutions
MortgageFlex System Solutions
 
Pega CPBA Training course content
Pega CPBA Training course content Pega CPBA Training course content
Pega CPBA Training course content
 
An introduction to end user software development
An introduction to end user software developmentAn introduction to end user software development
An introduction to end user software development
 
Instant queue manager_architecture_october2011
Instant queue manager_architecture_october2011Instant queue manager_architecture_october2011
Instant queue manager_architecture_october2011
 
Web–based crm application with interactive graphs
Web–based crm application with interactive graphsWeb–based crm application with interactive graphs
Web–based crm application with interactive graphs
 
Case Study for CRM Application For Sales Deaprtment
Case Study for CRM  Application For Sales DeaprtmentCase Study for CRM  Application For Sales Deaprtment
Case Study for CRM Application For Sales Deaprtment
 
Internet banking
Internet bankingInternet banking
Internet banking
 
Managed Metadata - SPSChicago 2010
Managed Metadata - SPSChicago 2010Managed Metadata - SPSChicago 2010
Managed Metadata - SPSChicago 2010
 

Viewers also liked

On demand rj_js
On demand rj_jsOn demand rj_js
On demand rj_jsneuwerk
 
Working example new game design curricula for underserved youth in multiple ...
Working example  new game design curricula for underserved youth in multiple ...Working example  new game design curricula for underserved youth in multiple ...
Working example new game design curricula for underserved youth in multiple ...Independent
 
Dig hv an_ma
Dig hv an_maDig hv an_ma
Dig hv an_maneuwerk
 
Andres Veliz -July2015
Andres Veliz -July2015Andres Veliz -July2015
Andres Veliz -July2015Andy Veliz
 
Uma breve história da humanidade - sapiens - Harari - fichamento
Uma breve história da humanidade - sapiens - Harari - fichamentoUma breve história da humanidade - sapiens - Harari - fichamento
Uma breve história da humanidade - sapiens - Harari - fichamentoCarlos Nepomuceno (Nepô)
 
Work at purdue
Work at purdueWork at purdue
Work at purdueTao Zhang
 
Mass custom hb_sl
Mass custom hb_slMass custom hb_sl
Mass custom hb_slneuwerk
 
Flae rau fc
Flae rau fcFlae rau fc
Flae rau fcneuwerk
 
Off an ps_mr_
Off an ps_mr_Off an ps_mr_
Off an ps_mr_neuwerk
 
Colegio teresa de ávila
Colegio teresa de ávilaColegio teresa de ávila
Colegio teresa de ávilaIsaAlbaJ
 
Defensoría del niño y del adolescente del perú
Defensoría del niño y del adolescente del perúDefensoría del niño y del adolescente del perú
Defensoría del niño y del adolescente del perúVargasEdhu
 

Viewers also liked (15)

WhisperPhones
WhisperPhonesWhisperPhones
WhisperPhones
 
On demand rj_js
On demand rj_jsOn demand rj_js
On demand rj_js
 
Working example new game design curricula for underserved youth in multiple ...
Working example  new game design curricula for underserved youth in multiple ...Working example  new game design curricula for underserved youth in multiple ...
Working example new game design curricula for underserved youth in multiple ...
 
Dig hv an_ma
Dig hv an_maDig hv an_ma
Dig hv an_ma
 
Andres Veliz -July2015
Andres Veliz -July2015Andres Veliz -July2015
Andres Veliz -July2015
 
Uma breve história da humanidade - sapiens - Harari - fichamento
Uma breve história da humanidade - sapiens - Harari - fichamentoUma breve história da humanidade - sapiens - Harari - fichamento
Uma breve história da humanidade - sapiens - Harari - fichamento
 
Sena
SenaSena
Sena
 
Work at purdue
Work at purdueWork at purdue
Work at purdue
 
Mass custom hb_sl
Mass custom hb_slMass custom hb_sl
Mass custom hb_sl
 
Flae rau fc
Flae rau fcFlae rau fc
Flae rau fc
 
Off an ps_mr_
Off an ps_mr_Off an ps_mr_
Off an ps_mr_
 
Colegio teresa de ávila
Colegio teresa de ávilaColegio teresa de ávila
Colegio teresa de ávila
 
Defensoría del niño y del adolescente del perú
Defensoría del niño y del adolescente del perúDefensoría del niño y del adolescente del perú
Defensoría del niño y del adolescente del perú
 
18
1818
18
 
3 Tage einmal anders
3 Tage einmal anders3 Tage einmal anders
3 Tage einmal anders
 

Similar to N tier architecture

N-tier Application Developement
N-tier Application DevelopementN-tier Application Developement
N-tier Application DevelopementDetectivee Mirza
 
Web technology and commerce unit 2
Web technology and commerce unit 2Web technology and commerce unit 2
Web technology and commerce unit 2arun0501
 
Differences Between Architectures
Differences Between ArchitecturesDifferences Between Architectures
Differences Between Architecturesprasadsmn
 
Web apps architecture
Web apps architectureWeb apps architecture
Web apps architectureTanmoy Barman
 
Mobile iOS Application Architectures
Mobile iOS Application ArchitecturesMobile iOS Application Architectures
Mobile iOS Application ArchitecturesArpit Kulsreshtha
 
Dbms architecture
Dbms architectureDbms architecture
Dbms architectureraima sen
 
Web Based Application for Rent or Sale
Web Based Application for Rent or SaleWeb Based Application for Rent or Sale
Web Based Application for Rent or SaleMike Taylor
 
E commerce technologies
E commerce technologiesE commerce technologies
E commerce technologiesAnne ndolo
 
Over view of software artitecture
Over view of software artitectureOver view of software artitecture
Over view of software artitectureABDEL RAHMAN KARIM
 
Lecture5 architecture styles.pdf
Lecture5 architecture styles.pdfLecture5 architecture styles.pdf
Lecture5 architecture styles.pdfssuser9d62d6
 
Chapter2
Chapter2Chapter2
Chapter2suks_87
 
Topic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information SystemsTopic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information Systemssanjoysanyal
 
Cloud MicroService Architecture
Cloud MicroService ArchitectureCloud MicroService Architecture
Cloud MicroService ArchitectureYakov Liskoff
 
Distributed information sys
Distributed information sysDistributed information sys
Distributed information sysMeena Chauhan
 

Similar to N tier architecture (20)

N-tier Application Developement
N-tier Application DevelopementN-tier Application Developement
N-tier Application Developement
 
Web technology and commerce unit 2
Web technology and commerce unit 2Web technology and commerce unit 2
Web technology and commerce unit 2
 
Differences Between Architectures
Differences Between ArchitecturesDifferences Between Architectures
Differences Between Architectures
 
Appathika.ppt
Appathika.pptAppathika.ppt
Appathika.ppt
 
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
 
Web apps architecture
Web apps architectureWeb apps architecture
Web apps architecture
 
Mobile iOS Application Architectures
Mobile iOS Application ArchitecturesMobile iOS Application Architectures
Mobile iOS Application Architectures
 
Dbms architecture
Dbms architectureDbms architecture
Dbms architecture
 
Web Based Application for Rent or Sale
Web Based Application for Rent or SaleWeb Based Application for Rent or Sale
Web Based Application for Rent or Sale
 
Lec 4.ppt
Lec 4.pptLec 4.ppt
Lec 4.ppt
 
[IJET-V2I2P8] Authors:Ms. Madhushree M.Kubsad
[IJET-V2I2P8] Authors:Ms. Madhushree M.Kubsad[IJET-V2I2P8] Authors:Ms. Madhushree M.Kubsad
[IJET-V2I2P8] Authors:Ms. Madhushree M.Kubsad
 
E commerce technologies
E commerce technologiesE commerce technologies
E commerce technologies
 
Over view of software artitecture
Over view of software artitectureOver view of software artitecture
Over view of software artitecture
 
Lecture5 architecture styles.pdf
Lecture5 architecture styles.pdfLecture5 architecture styles.pdf
Lecture5 architecture styles.pdf
 
Chapter2
Chapter2Chapter2
Chapter2
 
Client server computing
Client server computingClient server computing
Client server computing
 
Topic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information SystemsTopic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information Systems
 
Cloud MicroService Architecture
Cloud MicroService ArchitectureCloud MicroService Architecture
Cloud MicroService Architecture
 
Distributed information sys
Distributed information sysDistributed information sys
Distributed information sys
 
icv
icvicv
icv
 

More from Nidhi Saurav

N tier architecture
N tier architectureN tier architecture
N tier architectureNidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architectureNidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architectureNidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architectureNidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architectureNidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architectureNidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architectureNidhi Saurav
 
N tier architecture
N tier architectureN tier architecture
N tier architectureNidhi Saurav
 

More from Nidhi Saurav (8)

N tier architecture
N tier architectureN tier architecture
N tier architecture
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
 
N tier architecture
N tier architectureN tier architecture
N tier architecture
 

N tier architecture

  • 1. N-TIER ARCHITECTURE The simplest examples of tier architecture are enumerated as 1-Tier, 2-Tier, and 3-Tier. 1-Tier Architecture is the simplest, single tier on single user, and is the equivalent of running an application on a personal computer. All the required component to run the application are located within it. User interface, business logic, and data storage are all located on the same machine. They are the easiest to design, but the least scalable. Because they are not part of a network, they are useless for designing web applications. 2-Tier Architectures supply a basic network between a client and a server. For example, the basic web model is a 2-Tier Architecture. A web browser makes a request from a web server, which then processes the request and returns the desired response, in this case, web pages. This approach improves scalability and divides the user interface from the data layers. However, it does not divide application layers so they can be utilized separately. This makes them difficult to update and not specialized. The entire application must be updated because layers aren’t separated. 3-Tier Architecture is most commonly used to build web applications. In this model, the browser acts like a client, middleware or an application server contains the business logic, and database servers handle data functions. This approach separates business logic from display and data. But, it does not specialize functional layers. Its fine for prototypical or very simple web applications, but it doesn’t measure up to the complexity demanded ofweb applications. The application server is still too broad, with too many functions grouped together. This reduces flexibility and scalability. N-Tier Architectures provide finer granularity, which provides more modules to choose from as the application is separated into smaller functions. N-Tier and Example Usually N-Tier Architecture begins as a 3-Tier model and is expanded. It provides finer granularity. Granularity is the ability of a system, in this case, an application, to be broken down into smaller components or granules. The finer the granularity, the greater the flexibility of a system. It can also be referred to as a system’s modularity. Therefore, it refers to the pulling apart of an application into separate layers or finer grains. One of the best examples of N-Tier Architecture in web applications is the popular shopping-cart web application. The client tier interacts with the user through GUIs (Graphic User Interfaces) and with the application and the application server. In web applications, this client tier is a web browser. In addition to initiating the request, the web browser also receives and displays code in dynamic HTML (Hypertext Markup Language), the primary language of the World Wide Web. In a shopping cart web application, the presentation tier displays information related to such services as browsing merchandise, purchasing, and shopping cart contents. It communicates with other tiers by outputting results to the browser/client tier and all other tiers in the network. This layer calls custom tags throughout the network and to other networks. It also calls database stored procedures and web services, all in the goal of providing a more sophisticated response. This layer glues the whole application together and allows different nodes to communicate with each other and be displayed to the user through the browser. It is located in the application server. In N-Tier Architecture, the business logic tier is pulled out from the presentation tier and, as its own layer, it controls an application’s functionality by performing detailed processing. For example, in our shopping cart example, this tier completes credit card authorization and calculates things like shipping costs and sales tax. The tools used to encapsulate an application’s business logic into its own layer include web services, custom tags, and stored procedures. The business tier can also be considered the integration layer. Encapsulation allows the application to communicate with the data tier or the business logic tier in a way that is intelligible to all nodes. Encapsulation is one of the principles of object-oriented programming (OOP) and refers to an object’s ability to conceal its data and methods. Encapsulated objects only publish the external interface so any user interacting with them only needs to understand the interface and can remain ignorant as to the internal specifications. This way a user can call all sorts of services into action by calling the custom tag without having to know the code details of what made communication or implementation possible. The services just have to be accessible in the custom tag library. Encapsulation in the integration tier also liberates the network from just one vendor. The integration tier allows N-Tier Architecture to be vendor independent. In the shopping cart example, the application may have a simple custom tag for searching inventory and providing the most up-to-date, detailed information.