sabato 17 luglio 2010

Tier vs. Layer

Precisazione, forse superflua, ma che spesso mi capita di fare.

Per tier si intendono livelli "fisici", mentre per layer si intendono livelli "logici".

Citando da un paio di post:

Logical layers are merely a way of organizing your code. Typical layers include Presentation, Business and Data – the same as the traditional 3-tier model. But when we’re talking about layers, we’re only talking about logical organization of code. In no way is it implied that these layers might run on different computers or in different processes on a single computer or even in a single process on a single computer. All we are doing is discussing a way of organizing a code into a set of layers defined by specific function.

Physical tiers however, are only about where the code runs. Specifically, tiers are places where layers are deployed and where layers run. In other words, tiers are the physical deployment of layers.

Link:

http://www.lhotka.net/WeBlog/PermaLink.aspx?guid=efa88d0a-2388-4909-bee1-c9bddb6e9868

http://codebetter.com/blogs/david.hayden/archive/2005/07/23/129745.aspx 

Questa precisazione è necessaria anche perché spesso, soprattutto in ambiente universitario, si sentono usare questi termini a casaccio.

Nessun commento:

Posta un commento