开发者

Difference between 3-tier and n-tier architecture

My professor said, that adding multiple layers in the BLL, will make the 3-tier an n-tier architecture.

But from my understanding (I ma开发者_运维知识库y be wrong), a tier is a physical separation, and a layer is a logical seperation, so adding multiple layers will still keep it a 3-tier application, wouldn't it?


You are absolutely correct when you say

a tier is a physical separation, and a layer is a logical seperation so adding more layrers make it n-layered solution not a n-tiered solution. Adding so much layer may increase the complexity of your solution so try to avoid a lot of layering in the solution also. Normally, the application divide their layers into two broad categories.

1- Horizontal Layers: These layers are used to provide the application-wide functionality and they can be re-used in different solutions. Example of layers are:

 a- Logging Layer

 b- Security Layer

2- Vertical Layers: These are the layers which actually logically creates your application, for example, UI, business logic, data access and theoretically these layers can also be used in similar applications with some changes. Horizontal layers are used across by the vertical layers.


Even if tier is used commonly to reflect physical separation and layer for logical separation, the concepts of layer and tier are often used interchangeably.

Though, Multitier architecture (Wikipedia) is not an authoritative source, it is a pretty good read up.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜