Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MVC vs. 3-tier architecture?

What is the basic difference between MVC and 3-tier architecture?

like image 241
chhaya Avatar asked Jan 02 '11 07:01

chhaya


People also ask

How the MVC is different from 3-tier architecture and 3 layer architecture?

Comparison of Three Tier Architecture vs MVC Architecture Three-tier is nothing but Presentation Layer which is present UI related things, a business logic layer that contains all the calculation, logic related parts, and last Data Access Layer(Model). But in MVC Architecture is triangular.

Is MVC three layer architecture?

1) In MVC , there is the Model , View , Controller which is in essence a three layer architecture with View on top , Controller in the middle , Model on the bottom and all three layers are only able to communicate with the layers above and beneath them only which is exactly the same as layered architecture .

Is MVC a layered architecture?

MVC pattern architecture is basically a three-layered architecture. It separates the characteristics of application. Its first layer is related to the user input logic, second layer is related to the business logic and third layer is used to implement user interface logic.

Is MVC multi tier?

No, they are not the same. MVC is a design pattern for structuring user interface code. It could be used in a three-tier architecture, in which case the pattern would belongs in the user services layer.


1 Answers

3-tier is a Architecture Style and MVC is a Design Pattern.

so is Different in that.

but we could using mvc pattern in 3-tier architecture style.

so:

Presentation Tier: "Controllers and Views" from MVC Pattern.

Business Tier : "Model(Data)" from MVC Pattern.

Data Access Tier : Original Data Access Tier.

like image 134
F. Farjaminejad Avatar answered Sep 25 '22 10:09

F. Farjaminejad