model-view-controller - 三层架构和mvc有什么区别?

标签 model-view-controller architecture three-tier

3层架构和mvc有什么区别?

它们一样吗?

两者都有 3 层,即模型、 View 和 Controller

最佳答案

与MVC架构的比较

At first glance, the three tiers may seem similar to the model-view-controller (MVC) concept; however, topologically they are different. A fundamental rule in a three tier architecture is the client tier never communicates directly with the data tier; in a three-tier model all communication must pass through the middle tier. Conceptually the three-tier architecture is linear. However, the [model-view-controller] MVC architecture is triangular: the view sends updates to the controller, the controller updates the model, and the view gets updated directly from the model.

来源:http://en.wikipedia.org/wiki/Multitier_architecture#Three-tier_architecture

关于model-view-controller - 三层架构和mvc有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10739914/

相关文章:

Java程序组织: How can I get rid of this massive case statement?

.net - 如何处理循环引用?

c# - IoC Windows 服务架构

asp.net-mvc - DataAnnotations 或在服务中手动验证?

model-view-controller - MVC 与 3 层架构?

c# - 在通用 Windows 平台 (UWP) 应用程序中使用 Microsoft.AspNet.Mvc

php - 在 Zend Framework 中采用数据映射器方法

c# - 泛型类约束,其中 <T> 是约束泛型类的类型

sql - 三层架构与存储库模式

php - MVC 项目的正确设计