locked
Nteir architecture vs MVC RRS feed

  • Question

  • Hello

               I want the difference b/w Nteir architecture and MVC model

    Regards

     

    Sunday, April 13, 2008 7:48 AM

Answers

All replies

  • Hi

     

    i'm afraid you are missing the point on these two.

     

    MVC is a design pattern for applications, which allows you to provide loose coupling between the view (for instance a web page), the controller and the model.

     

    N tier architecture is about splitting up an application in different (logical and or physical ) layers, UI on a machine (or set of machines), Business logic and services on another...

     

    check out the following to get a better understanding

    http://en.wikipedia.org/wiki/Three-tier_(computing)

    http://www.developerfusion.co.uk/show/3058/2/

    http://en.wikipedia.org/wiki/Model-view-controller

     

     

    Hope this helps you out

    Sunday, April 13, 2008 8:42 AM
  • I was wondering about this myself. Not so much as the difference between MVC and N-tier, but how to mix them.  Specifically the ASP.Net MVC and 3-tier architecture in ASP.Net.

    So far, I have tried to fit things together like this.

    MVC is the UI layer.  The UI layer is physically one layer, but logically can be 2 layers (UI and delegates). Below that you put your business logic layer and data access layer as explained in the 3-tier tutorials.

    I might be wrong about this, as I am still figuring this out.

    Wednesday, April 16, 2008 1:56 PM
  •  

    Hi

     

    your idea is correct, imho Smile

     

    MVC is a design pattern that can be used in the UI layer.

     

    N tier architecture is splitting up of the logical components UI - Business logic- Data into different pieces

    + physically different machines.

    Wednesday, April 16, 2008 2:14 PM
  • just to say that again.  The delegates part of the UI layer would be the controller, which would in turn invoke the business logic layer.

    edit: at least that is the way I feel right now.

    Wednesday, April 16, 2008 3:17 PM
  • Two years ago I wrote about what is exactly each one (not just MVC vs 3-layers, but also 3-tiers which is similar to three layer but emphasizing physical distribution, while layers don't explicitate physical processes but logical responsabilities)

     

    The article is here, enjoy

     

    PS. However, I posted this article here several times and some people told me that diffs between 3-layers and 3-tiers are subtle so they could be considered the same. I disagree but, you know...

    Tuesday, May 13, 2008 8:15 PM