什么是之间和QUOT的差异;层"和"层级"? [英] What's the difference between "Layers" and "Tiers"?

查看:124
本文介绍了什么是之间和QUOT的差异;层"和"层级"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么层次和层级?

之间的区别
解决方案

  

逻辑只是一个方式
  举办​​code。典型的层
  包括presentation,商业和
  数据 - 一样的传统
  3层模型。但是,当我们谈论
  有关图层,我们只谈论
  code的逻辑组织。在任何
  方式是它意味着这些层
  可能在不同的计算机或运行
  在一个不同的过程
  计算机或者甚至在一个单一的过程
  一台计算机上。所有我们正在做的
  正在讨论举办的一种方式
  code到由定义了一组层
  特定的功能。


  
  

物理层级然而,只有约
  其中code运行。特别,
  层在哪里层的地方
  部署并在层上运行。在
  换句话说,层是物理
  部署层。


来源:罗克福德Lhotka,如果所有的应用程序是N层 的<? / p>

What's the difference between "Layers" and "Tiers"?

解决方案

Logical layers are merely a way of organizing your code. Typical layers include Presentation, Business and Data – the same as the traditional 3-tier model. But when we’re talking about layers, we’re only talking about logical organization of code. In no way is it implied that these layers might run on different computers or in different processes on a single computer or even in a single process on a single computer. All we are doing is discussing a way of organizing a code into a set of layers defined by specific function.

Physical tiers however, are only about where the code runs. Specifically, tiers are places where layers are deployed and where layers run. In other words, tiers are the physical deployment of layers.

Source: Rockford Lhotka, Should all apps be n-tier?

这篇关于什么是之间和QUOT的差异;层&QUOT;和&QUOT;层级&QUOT;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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