Web Application: N-tier vs. N-Layer

Source: Internet
Author: User

"N-tier is more about where the code/processes run, and n-layer is more about how the code is logically grouped ."

 

"In the picture below,... the browser, IIS, and database all run on 3 separate physical machines, each separated by a network ."

 

  

 

"Layers (n-layer) are more about how you organize your code. to make your applications more maintainable and extensible, you will want to divide your applications into highly cohesive (High Cohesion grasp pattern), loosely coupled (low coupling grasp pattern) areas of interest, which I call layers. the picture below is an example of a layering approach that follows the domain-driven design patterns."

 

 

 
------ Web applications: N-tier vs. N-layer-benefits and trade-offs from: http://davidhayden.com, Author: David Hayden

 

"N-tier ubuntures divide code into physical tiers to promote code-reuse ."

 

"N-layer ubuntures organize code into logical modules to promote code-reuse and minimize failure points ."

 

"N-tier is a phrase most seasoned developers have heard, but it has multiple meanings depending on to whom you talk. in this article I'll define N-tier as, a software architecture methodology that defines distinct physical or process boundaries between application modules. n-tier ubuntures typically break down tiers into presentation, business, and data tiers, although other tiers and patterns may certainly be used."

 

"N-tier ubuntures have several advantages, including better code re-use, easier maintenance, enhanced scalability, and fault isolation. however, there are disadvantages as well, such as additional failure points in the application and added complexity as code makes CILS between multiple machines on the network."

 

"While the term N-tier is certainly relevant for processing applications, I prefer to minimize failure points as much as possible and keep things simple. as a result, I subscribe to the n-layer approach, where code is divided into distinct layers (presentation, business, and data for example ), but is not separated by physical or process boundaries unless absolutely necessary. doing this keeps things simple and preserves the principles of Code-reuse, easier maintenance, and so on."

 

"There are two main ways to create n-layer applications using Visual Studio. and ASP. NET 2005. NET 2.0 (see figure 3 ). the first involves the app_code folder available in ASP. NET 2.0. the Code-behind files in the Web site contain the presentation logic; the business and data classes are placed in app_code."

 

------ The stratifier layering ASP. NET application code by Dan wahlin

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.