What is the basic difference between MVC and 3-tier 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.
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 .
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With