Difference Between Two-tier Architecture and Three-Tier Architecture in Tabular Form

S.NoComparisonTwo-tier ArchitectureThree -tier Architecture
1.Diagram
WEB SERVER
WEB SERVER

WEB-SERVER
WEB-SERVER

Three Tier Architecture Web Database Application
Three Tier Architecture Web Database Application
2.Architecture TypeClient -Server ArchitectureWeb -based application
3.WorkingClient will hit request directly to server and client will get response directly from server,The direct communication takes place between client and server. There is no intermediate between client and server. Because of tight coupling a 2 tiered application will run faster.Here in between client and server middle ware will be there, if client hits a request it will go to the middle ware and middle ware will send to server and vice versa.
4.Layers2-tier means

  1. Design layer/Client Application (Client Tier)
  2. Data layer/Database (Data Tier)
3-tier means

  1. Design layer /presentation
  2. Business layer or Logic layer / data access tier
  3. Data layer / data tier.
5.SecurityLess secured as client can talk to database directlyHighly secured as client is not allowed to talk to database directly
6.ScalabilityPoorExcellent as requests can be load balanced between servers
7.ReusabilityMostly clients are monolothic and thereby reusability not possibleReusability more with services implementation
8. Advantages:
  1. Easy to maintain and modification is bit easy.
  2. Communication is faster.
  1. Better Re-usability.
  2. Improve Data Integrity.
  3. Improved Security – Client is not direct access to database.
  4. Forced separation of user interface logic and business logic.
  5. Business logic sits on small number of centralized machines (may be just one).
  6. Easy to maintain, to manage, to scale, loosely coupled etc.
9. Disadvantages:
  1. In two tier architecture application performance will be degrade upon increasing the users.
  2. Cost-ineffective.
  1.  Increase Complexity/Effort
(Visited 14 times, 1 visits today)

Written by: