65.9K
CodeProject is changing. Read more.
Home

Desinging and Developing N-Tier Solutions Using .Net

starIcon
emptyStarIcon
starIcon
emptyStarIconemptyStarIconemptyStarIcon

1.02/5 (24 votes)

Dec 31, 2004

3 min read

viewsIcon

30967

downloadIcon

7

Desinging and Developing N-Tier Solutions Using .Net

Dowmload Code - Click Here!
N-Tier Architect
developing .Net Application Using N-Tier Approach 


What is N-Tier Architect
N-Tier architecture refers to the architecture of an application that has at least 3 "logical" layers -- or parts -- that are separate.
 


Why Use N-Tier Architect
Because each layer can be located on physically different servers with only minor code changes, hence they scale out and handle more server load. Also, what each layer does internally is completely hidden to other layers and this makes it possible to change or update one layer without recompiling or modifying other layers.


N-Tier Architect Over View
Any application developed using N-Tier Architect must have at least three logical
layerare:

         Presentation Tier

         Business Logic Tier

         Data Access Tier

Enhancement in 3 Tier 

We can enhance our application by using some more layers. For presentation tier and
business logic tier
communication.

         Business Facade Tier

It would be better if we also separate application data passingclasses and configuration
and
tracing classes.

         Common

         System Frame Work

 

Final N-Tier Architect
Finally we have N-Tier architecture which has four logical layers.
These are:

         Presentation Layer

         Business Facade Layer

         Business Rules Layer

         Data Access Layer

More…

         Common

         System Frame Work

 

 

Presentation Tier

Contains user interface based upon windows form/web forms and code behind files.

        Modules (User Controls)

        Web Pages

         This layer is implemented as the Web project in the Duwamish.sln (you can download duwamish from link in ref at the end of this article).

 

Business Facade
The Business Facade layer serves as an isolation layer, segregating the user interface from the implementation of the various business functions.
  This layer is implemented as the BusinessFacade project in the Duwamish.slnsolution file.

 

Business Rule

contains the implementation of the various business rules and logic. Business rules do tasks such as the validation of customer accounts and book orders.

This is implemented as the BusinessRules project in the Duwamish.sln solution file.

 


Data Access Tier
The Data Access layer provides data services to the Business Rules layer.

        This layer is implemented as the DataAccess project in theDuwamish.sln solution file.

 

Common

The Common layer contains datasets that are used for passing information between thevarious layers.

This layers is implemented in the Common project in the Duwamish.sln solution file.

System Frame Work
This contains application configuration and tracing within the System.

This is implemented in SystemFramework project in the Duwamish.sln solution file.

 

         Presentation Tier

        Module

à Create Customer .ASCX

        Web Page

à Create Customer .ASPX

    

         Business Façade Tier

à CUSTOMER.CS

         Business Logic Tier

à CUSTOMER.CS

         Data Access Tier

à CUSTOMER.CS

         More…

         Common

à CUSTOMER.CS

 

 

 

 

 

Deployment of Tiers
There are two methods to deploy your N-Tier architect application.

Distributed
Non Distributed


Distributed Deployment
In distributed deployment each tier is hosted independently

For large scale applications.

 

 

 


Non- Distributed Deployment

In this type of deployment you can host all of your tiers in the presentation tier

For small scale application.

 

 

 

 Ref:

  1. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dwamish7/html/vtoriDuwamish70Overview.asp