Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Explain the different tiers of 2 tier & 3 tier architecture? [closed]

I am not able to understand which elements are called as first tier, second tier & third tier & where they reside. Can they reside on same machine or different machine. Which tier reside on which machine? How we can identify a particular application as a 2 tier application or 3 tier application. Please explain with example

like image 785
Shailesh Jaiswal Avatar asked Feb 04 '10 11:02

Shailesh Jaiswal


People also ask

What is meant by 2 tier architecture?

Two-tier architecture. In a two-tier architecture, the client is on the first tier. The database server and web application server reside on the same server machine, which is the second tier. This second tier serves the data and executes the business logic for the web application.

What is the meaning of 2 tier and 3-tier?

Two-tier architecture consists of two layers : Client Tier and Database (Data Tier). Three-tier architecture consists of three layers : Client Layer, Business Layer and Data Layer. 4. It is easy to build and maintain.

What is 2 tier architecture with example?

The 2-tier Architecture is based on a client-server machine. In this type of architecture, the applications on client-side interact directly with the database present at the server-side. This interaction between client and server uses Application Program Interface like ODBC and JDBC.

What is 2 tier in networking?

A two-tier architecture is a software architecture in which a presentation layer or interface runs on a client, and a data layer or data structure gets stored on a server. Separating these two components into different locations represents a two-tier architecture, as opposed to a single-tier architecture.


2 Answers

Wikipedia explains it better then I could

From the article - Top is 1st Tier: alt text

like image 109
Dan McGrath Avatar answered Sep 17 '22 14:09

Dan McGrath


First, we must make a distinction between layers and tiers. Layers are the way to logically break code into components and tiers are the physical nodes to place the components on. This question explains it better: What's the difference between "Layers" and "Tiers"?

A two layer architecture is usually just a presentation layer and data store layer. These can be on 1 tier (1 machine) or 2 tiers (2 machines) to achieve better performance by distributing the work load.

A three layer architecture usually puts something between the presentation and data store layers such as a business logic layer or service layer. Again, you can put this into 1,2, or 3 tiers depending on how much money you have for hardware and how much load you expect.

Putting multiple machines in a tier will help with the robustness of the system by providing redundancy.

Below is a good example of a layered architecture:

alt text
(source: microsoft.com)

A good reference for all of this can be found here on MSDN: http://msdn.microsoft.com/en-us/library/ms978678.aspx

like image 30
LeWoody Avatar answered Sep 16 '22 14:09

LeWoody