当前位置:网站首页>Differences and relations between three-tier architecture and MVC

Differences and relations between three-tier architecture and MVC

2022-06-13 04:05:00 Cavewang

Three tier architecture and MVC The difference and connection

 Insert picture description here
MVC yes Model-View-Controller, Strictly speaking, the three together will be in the three-tier architecture UI layer , in other words ,MVC In the three-tier architecture UI The layer moves forward again ⾏ Differentiated , Divided into controllers 、 View 、 The entity has three parts , Controller complete ⻚⾯ Logic , To communicate with a boundary through an entity ⾯ Layer completes the call ;⽽C Layers are directly related to BLL Into the ⾏ dialogue .

MVC It can be one of the three layers ⼀ Presentation layer framework , Belong to the performance layer . Three floors and mvc Can coexist .

The three layers are divided based on business logic ,⽽MVC Is based on ⻚⾯ Come to share .

MVC The main ⽤ In the presentation layer ,3 Layer main ⽤ It depends on the architecture ,3 layer ⼀ Generally, it is the presentation layer 、 Middle layer 、 The data layer , The performance layer ⼜ Can be divided into M、V、C,(Model View Controller) Model - View - controller

MVC It's the mode of expression (Presentation Pattern)

Three tier architecture is a typical architecture pattern (Architecture Pattern)

summary :
The hierarchical mode of three-tier architecture is a typical up-down relationship , The top depends on the bottom . but MVC As a mode of expression, there is no up-down relationship ,
⽽ It's a collaborative relationship . Even if MVC As an architectural pattern , It's not a hierarchical model .MVC And the three-tier architecture basically has no choice ⽐ sex , yes
Should be ⽤ Technology in different fields .

原网站

版权声明
本文为[Cavewang]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202280525438204.html