是3层架构与MVC的区别? [英] what is the difference between 3 tier architecture and a mvc?

查看:166
本文介绍了是3层架构与MVC的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是3层架构与MVC的区别?

他们是一样的吗?

两者都有3层即模型,视图和控制器


解决方案

的MVC架构比较


  

乍一看,这三个层次看起来类似
  模型 - 视图 - 控制器(MVC)的概念;然而,拓扑它们是
  不同。 在三层体系结构的基本规则是
  客户层从不直接与数据层通信;在一个
  三层模式的所有通信必须经过中间层

  从概念上讲三层架构的线性即可。然而,
  [模型 - 视图 - 控制器] MVC架构的三角:视图发送
  更新到控制器,所述控制器更新模型,和
  视图获取直接从模型进行更新。


来源:<一个href=\"http://en.wikipedia.org/wiki/Multitier_architecture#Three-tier_architecture\">http://en.wikipedia.org/wiki/Multitier_architecture#Three-tier_architecture

what is the difference between 3 tier architecture and a mvc ?

Are they same?

Both have 3 layers i.e model, views and controller

解决方案

Comparison with the MVC architecture

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.

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

这篇关于是3层架构与MVC的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆