Home > Common Problem > What is the difference between MVC and three-tier architecture?

What is the difference between MVC and three-tier architecture?

Guanhui
Release: 2020-06-17 14:31:05
Original
2979 people have browsed it

What is the difference between MVC and three-tier architecture?

What is the difference between MVC and three-tier architecture?

1. The three layers are divided based on business logic, while MVC is divided based on pages;

2. The three-tier pattern is an architecture pattern, and MVC is a design pattern. ;

3. The three-tier model can be classified as a deployment model, and MVC can be classified as a presentation model.

Three-tier architecture

Three-tier architecture (3-tier architecture) In the usual sense, the three-tier architecture divides the entire business application into: User Interface layer layer), business logic layer (Business Logic Layer), data access layer (Data access layer). The purpose of distinguishing levels is the idea of ​​"high cohesion and low coupling". In software architecture design, the hierarchical structure is the most common and important structure. The layered structure recommended by Microsoft is generally divided into three layers, from bottom to top: data access layer, business logic layer (also called domain layer), and presentation layer.

MVC

The full name of MVC is Model View Controller, which is the abbreviation of model-view-controller, a software design Model organizes code in a way that separates business logic, data, and interface display, and gathers business logic into one component. While improving and personalizing interfaces and user interactions, there is no need to rewrite business logic. MVC was uniquely developed to map traditional input, processing, and output functions into a logical graphical user interface structure.

Recommended tutorial: "PHP Tutorial"

The above is the detailed content of What is the difference between MVC and three-tier architecture?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
mvc
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template