Last post Jan 23, 2014 10:40 AM by Rion Williams
Jan 23, 2014 02:10 AM|mou_inn|LINK
what is the difference between n-tier and n-layer. how to identify which one is n-tier and which one is n-layer. thanks
Jan 23, 2014 02:32 AM|somjet|LINK
I think it same meaning.
Jan 23, 2014 07:14 AM|mou_inn|LINK
i think no..........both have different purpose.
Jan 23, 2014 10:14 AM|jasminder.33|LINK
You are correct. Both of them are different.
N-tier is basically the physical separation of your system components, where as N-layer is logical separation of your components of a system.
For ex : An n-tier application is usually like you web application running at the front end, in a browser, your code hosted in the IIS and database as a separate entity, So these different components basically act as a
N-layer is like you have a web application with different layers of code in it like BLL, DAL etc. layer. These layers can interact with each other for logical processing and usually they are on the same physical location(or you can say TIER). So BLL, DAL
etc. act as the LAYERS.
Jan 23, 2014 10:40 AM|Rion Williams|LINK
There are differences between tiers and layers when discussing application architecture, however the two are often used interchangeably (and incorrectly). Basically the two can be broken down as follows :
So in summary; Tiers correspond to "physical separation" and Layers correspond to "logical separation" and you can easily have an application that consists of N-Tiers and N-Layers respectively.
If you want to learn a bit more, I would recommend checking out
this Stack Overflow discussion on Tiers and Layers.