Monday, March 9, 2015

Two-Tier and Three-Tier Architecture

In this article we are going to discuss about the two-tier and three-tier architecture.

Two-Tier Architecture:
The two-tier architecture is like client server application. The direct communication takes place between client and server. There is no intermediate between client and server.





The above figure shows the architecture of two-tier. Here the communication is one to one. Let us see the concept of two tier with real time application. For example now we have a need to save the employee details in database. The two tiers of two-tier architecture is

01.Database (Data tier)
02. Client Application (Client tier)

So, in client application the client writes the program for saving the record in SQL Server and thereby saving the data in the database.




Advantages:
Understanding and maintenances is easier.

Disadvantages:
Performance will be reduced when there are more users.

Three-Tier Architecture:
Three tier architecture having three layers. They are 

  1. Client layer
  2. Business layer
  3. Data layer


Client layer: Here we design the form using textbox, label etc.
Business layer: It is the intermediate layer which has the functions for client layer and it is used to make communication faster between client and data layer. It provides the business processes logic and the data access.
Data layer: it has the database.


Advantages

  1. Easy to modify with out affecting other modules
  2. Fast communication
  3. Performance will be good in three tier architecture.

Share this

0 Comment to "Two-Tier and Three-Tier Architecture"

Post a Comment