Two Laptop Bag
The moose likes OO, Patterns, UML and Refactoring and the fly likes Layer vs Tier - JAA book Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Layer vs Tier - JAA book" Watch "Layer vs Tier - JAA book" New topic

Layer vs Tier - JAA book

Arturo Tena

Joined: Mar 16, 2012
Posts: 6

Kirk, I wish to know your opinion -and everybody's too.

I used to talk about the "Presentation Layer", the "Business Layer" and so on. Later, while attending one Oracle's course (no ad intended) I learn some people prefer to say "Tier" instead of "Layer" when refering to the physical distribution of the components from a computing system.

Since it seems you don't use "Tier" but "Physical Layers", I am curious if you think the difference is not useful, or should we -as an industry- to create a common vocabulary.

If I got it all wrong, please forgive me.
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3152

As per my understanding Tiers would refer to distributing the layers into different physical machines, where as layers would be on the same machine.

Mohamed Sanaulla | My Blog
Kirk Knoernschild
Ranch Hand

Joined: Apr 16, 2012
Posts: 41
I'm with Mohamed on this one. Tiers are where your code runs. Layers are how your code is structured. I talk about layers in the book. For instance, if you apply the physical layers patterns, you have the flexibility to run different layers across different tiers. And you gain this benefit because of modularity. It gives you greater flexibility.

Visit the book's website at where you can review all 18 patterns and download an excerpt of the book. There is also a mobile web application available that you can take with you wherever you go.

Twitter: @pragkirk
I agree. Here's the link:
subject: Layer vs Tier - JAA book
jQuery in Action, 3rd edition