0
votes

I am trying to figure out the difference between MVC and 3-tier architecture. I know that MVC, in big applications, applies to the presentation tier of 3-tier architecture:

If I'm right, what's the difference between the Model layer of MVC and the Logic tier of 3-tier Architecture?

2
I am no expert in n-tier, hence the comment instead of answer. As I see it, n-tier pattern is on different scale then MVC. Latter defines the flow of information within an application, while n-tier defines the flow of information between applications withing an infrastructure. But then again ... I am probably wrong about this. - tereško

2 Answers

0
votes

Another way to think of it is that MVC can act as the presentation layer of your 3 tier architecture.

To specifically answer your question, in MVC the Model is a representation of your data. the View presents and acts on your data and the Controller marshals your Models between the rest of your architecture (perhaps the BL of your 3 tier architecture) and the Views.

0
votes

I basically treat the MVC Model as the Entities in the Layered Architecture. I have thought about this sometime back and have written about it here. http://serena-yeoh.blogspot.com/2011/12/mvc-and-layered-architecture.html

You can also get a sample implementation in code from here http://layersample.codeplex.com/