Difference between Layers and Tiers





Layers

Layers are logical representation.In other words,Logical layers are a way of organizing code.

Typical layers include :

1)Presentation Layer or GUI Layer

Its name itself suggests its main function: it deals with the presentation of data

2)Business Layer or Business Logic Layer

A business logic layer (BLL), also known as the domain layer, where all the logic’s are been written

3)Data Access Layer or Data Layer

A data access layer (DAL) is a layer which provides access to data stored in Database
if we deploy all the DLL that has been created during compilation on the same machine, then we have only 1 physical tier



Tiers

Physical tiers are the place where the code runs. Specifically, you can say that Tiers are the physical deployment of layers.
Typical Tiers include :

1)Single Tier(MainFrame )

Every thing was stored in a single machine. Users need to access this centralized machine.ie, All the layers in a Single machine

2)Two Tier (client-server)

Client (fat client) which consists of Presentation layer and Logic layer and Server will be an Database management system

3)Three Tier

A 3-tier application is an application program that is organized into three major parts, each of which is distributed to a different place or places in a network. The three parts are:
Tier 1: The workstation or presentation interface
Tier 2: the middle tier is also known as the application server, which provides the business processes logic and the data access.
Tier 3: The database and programming related to managing it
HappyCoding ! 😉

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: