Partager via


Layers and Tiers

As part of the patterns & practices App Arch Guide 2.0 project, we needed to nail down layers and tiers.   

Layers vs. Tiers
The original App Arch Guide distinguished between layers and tiers:

"This guide uses the term layer to refer to a component type and uses the term tier to refer to physical distribution patterns."

In other words, layers are logical and tiers are physical (two-tier, three-tier, N-tier).  This distinction is helpful, particularly when you want to talk about where you run your layers (which tier).

Presentation Layer, Business Layer and Data Layer
While there's some variations in layer terms, many people that build application will identify with presentation, business, and data layers.  Here's an example:

Layers 

  • Presentation Layer - provides interactive access to the application.  (You could argue that user interaction layer might be more appropriate.)
  • Business Layer - the logical grouping of components and services that provide the business functionality in your application.
  • Data Layer - the logical grouping of the components and services that provide data access functionality in your application.  (You could argue to call it your resource access layer.)

Two-Tier, Three-Tier, and N-Tier
As mentioned earlier, you can think of tiers as physical distribution patterns.   Here are some visual examples:

Two-Tier

2Tier

Three-Tier

3Tier 

N-Tier

NTier

Additional Resources
Here's some links you might find useful:

My Related Posts

Comments

  • Anonymous
    September 06, 2008
    The comment has been removed
  • Anonymous
    November 20, 2008
    The comment has been removed