3- tier Architecture Sanjeev Sarma, Webx
Topics Covered What is 3-tier Architecture? Evolution of 3-tier Architecture Development. What does 3-tier Architecture Offer You? Advantages & Disadvantages An Example of how to implement 3-tier Architecture in .Net Platform Using C#
What is 3-tier Architecture? A three-way interaction in a client/Server environment The User Interface is stored in the Client. The Business Application Logic is Stored in one or more Servers. The Data is Stored in a Database Server.
Evolution to the 3-tier Architecture Tiers we are going to study
Single Tier Architecture Time of Huge “Mainframe” All Processing in Single Computer All Resources Attached to the same Computer Access Via Dumb Terminals
Single Tier – Advantages & Disadvantages Advantages Simple Efficient Uncomplicated Disadvantages Very Expensive
Dual Tier Architecture The Personal Computer Necessity of Providing Personal Software The Client Server Model was Born!! Logical System Components – Most of which are on the Client
Dual Tier – Advantages & Disadvantages   Advantages Less Expensive than Mainframe Disadvantages The Connections to the Database Server are very Expensive One can only connects a limited number of users to a server before Database Server spends more time managing connections than processing requests Cost-ineffective. Many users only use their connections 2-3% of the time.
3-Tier Architecture These Applications runs on the Traditional Client/Server Model But from a Application server. Client only Displays the GUI and data, but has no part in producing results Database Server Serves to few Connections
3-Tier Advantages Scalability The Application Servers can be deployed on many machines The Database no longer requires a connection from every client. Reusability If a standard object is employed, the specific language of implementation of middle tier can be made transparent. Data Integrity The middle tier can ensure that only valid data is allowed to be updated in the database.
3-Tier Advantages Improved Security Since the client doesn’t have direct access to the database, Data layer is more secure. Business Logic is generally more secure since it is placed on a secured central server. Reduced Distribution Changes to business logic only need to be updated on application servers and need not to distributed on clients Improved Availability Mission Critical Applications can make use of redundant application servers and redundant application servers, so it can recover from network of server failures.
3-Tier Disadvantages Increased Complexity / Effort In General 3-tier Architecture is more complex to build compared to 2-tier Architecture. Point of Communication are doubled.
Conclusions Complex business rules easy to implement in application server layer. Business Logic off-loaded from database server and client, which improve performance Changes to business logic automatically enforce by server. All tiers can be platform independent. Superior Performance for medium to High Volume Environments
3-Tier Application in ASP.NET The Program is organised into three major distinctive tiers or layers: Presentation Layer (User Interface) Business Layer (Business Access Layer) Data Layer (Data Access Layer)
User Interface Layer
Presentation Layer
Business Access Layer - Properties
Business Access Layer
Data Access Layer
Presentation Layer Creating an Object  of  Property  Layer
Presentation Layer Creating an Object  of  Business  Layer
Presentation Layer Data Object to Receive Data sent by Business Layer
Presentation Layer Obtaining ID from Property Layer
Presentation Layer Calling Business Layer Function
Business Access Layer Calling Data Layer Function
Data Access Layer Result Object Declaration
Data Access Layer SQL Query Definition
Data Access Layer Creating Object to receive data
Data Access Layer Query Execution
Data Access Layer Returning the Information of the Database
Business Access Layer Retuning the Information of Data Layer
Presentation Layer Returning Data From Business Layer
Presentation Layer Displaying Result
Questions & Answers If Any?
Thank You!

3 Tier Architecture

  • 1.
    3- tier ArchitectureSanjeev Sarma, Webx
  • 2.
    Topics Covered Whatis 3-tier Architecture? Evolution of 3-tier Architecture Development. What does 3-tier Architecture Offer You? Advantages & Disadvantages An Example of how to implement 3-tier Architecture in .Net Platform Using C#
  • 3.
    What is 3-tierArchitecture? A three-way interaction in a client/Server environment The User Interface is stored in the Client. The Business Application Logic is Stored in one or more Servers. The Data is Stored in a Database Server.
  • 5.
    Evolution to the3-tier Architecture Tiers we are going to study
  • 6.
    Single Tier ArchitectureTime of Huge “Mainframe” All Processing in Single Computer All Resources Attached to the same Computer Access Via Dumb Terminals
  • 7.
    Single Tier –Advantages & Disadvantages Advantages Simple Efficient Uncomplicated Disadvantages Very Expensive
  • 8.
    Dual Tier ArchitectureThe Personal Computer Necessity of Providing Personal Software The Client Server Model was Born!! Logical System Components – Most of which are on the Client
  • 9.
    Dual Tier –Advantages & Disadvantages Advantages Less Expensive than Mainframe Disadvantages The Connections to the Database Server are very Expensive One can only connects a limited number of users to a server before Database Server spends more time managing connections than processing requests Cost-ineffective. Many users only use their connections 2-3% of the time.
  • 10.
    3-Tier Architecture TheseApplications runs on the Traditional Client/Server Model But from a Application server. Client only Displays the GUI and data, but has no part in producing results Database Server Serves to few Connections
  • 11.
    3-Tier Advantages ScalabilityThe Application Servers can be deployed on many machines The Database no longer requires a connection from every client. Reusability If a standard object is employed, the specific language of implementation of middle tier can be made transparent. Data Integrity The middle tier can ensure that only valid data is allowed to be updated in the database.
  • 12.
    3-Tier Advantages ImprovedSecurity Since the client doesn’t have direct access to the database, Data layer is more secure. Business Logic is generally more secure since it is placed on a secured central server. Reduced Distribution Changes to business logic only need to be updated on application servers and need not to distributed on clients Improved Availability Mission Critical Applications can make use of redundant application servers and redundant application servers, so it can recover from network of server failures.
  • 13.
    3-Tier Disadvantages IncreasedComplexity / Effort In General 3-tier Architecture is more complex to build compared to 2-tier Architecture. Point of Communication are doubled.
  • 14.
    Conclusions Complex businessrules easy to implement in application server layer. Business Logic off-loaded from database server and client, which improve performance Changes to business logic automatically enforce by server. All tiers can be platform independent. Superior Performance for medium to High Volume Environments
  • 15.
    3-Tier Application inASP.NET The Program is organised into three major distinctive tiers or layers: Presentation Layer (User Interface) Business Layer (Business Access Layer) Data Layer (Data Access Layer)
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
    Presentation Layer Creatingan Object of Property Layer
  • 22.
    Presentation Layer Creatingan Object of Business Layer
  • 23.
    Presentation Layer DataObject to Receive Data sent by Business Layer
  • 24.
    Presentation Layer ObtainingID from Property Layer
  • 25.
    Presentation Layer CallingBusiness Layer Function
  • 26.
    Business Access LayerCalling Data Layer Function
  • 27.
    Data Access LayerResult Object Declaration
  • 28.
    Data Access LayerSQL Query Definition
  • 29.
    Data Access LayerCreating Object to receive data
  • 30.
    Data Access LayerQuery Execution
  • 31.
    Data Access LayerReturning the Information of the Database
  • 32.
    Business Access LayerRetuning the Information of Data Layer
  • 33.
    Presentation Layer ReturningData From Business Layer
  • 34.
  • 35.
  • 36.