Wednesday, October 23, 2013

Difference between MVC AND n-Tier architecture


Few days ago a colleague asked me what is the difference between MVC AND n-Tier architecture. Actually I found that it is confusing to a lot of people.

3 tier architecture

For n-Tier it is an architecture so it means that you have tiers which have to be separated physically (in different servers for example) or virtually. Take care for arrow directions, the UI layer can only calls BL tier and  BL tier perform your logic and can only call your DL tier.

Model View Control
But what about MVC (Model View Controller)
MVC is a design pattern, The View is the UI and controller which handle user requests and uses model which saves data. Again take care for arrow directions. In MVC design pattern the controller uses View and Model, The View can use Model directly.

The MVC design pattern can be used in UI layer (presentation layer) in n-tiers architecture.

For further details please have a look on these links: