开发者

Proper Procedure to create a n-tier Website in ASP.NET

What is the correct procedure to create an n-tier Website in A开发者_运维知识库SP.NET? Can this be done without setting up a server farm, and how would you be able to test it? Thx.


I personally support the example specified by Layered Architecture sample on codeplex

It can be downloaded from the following location:

http://layersample.codeplex.com/

It comes with a sample application which should outline and explain good patterns and practices for a fictional company.

You could use this as a guide when developing an n-tier architecture application. If you need a greater understanding of what n-tier actually is you could look at wikipedia:

http://en.wikipedia.org/wiki/Multitier_architecture

With regards to requiring a server farm for hosting an n-tier application; this is not a requirement. The idea behind an n-tier application is creating a flexible and scalabale application. Initially if the application is not resource intensive it is possible to group all the tiers on the same server. As the application becomes more resource intensive and requested the tiers can and should be scaled out across multiple computers.


A tier does not necessarily involve having a server farm.

Below image shows a 3 tier architecture with only one server in both Tier 2 and Tier 3.

Proper Procedure to create a n-tier Website in ASP.NET

However, in general, there is sometimes a lot of confusion in the whole Tier / Layer terminology.

An excellent post on Layers v/s Tiers is here.

Also Rockford Lhotka's post referenced in this article is also an excellent resource.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜