b / w N层架构和N层层有什么区别? [英] what is the difference b/w N-tier archicture and N-tier layer?

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

问题描述

b / w N层架构与N层层有什么区别?

推荐答案

人们经常使用这两个术语可互换的是,他们可以将架构描述为多层次和多层次的。我的看法是,通常一个层指的是一些物理分离,而一个层更像是逻辑分离。



例如,我会说一个典型的Web应用程序有一个前端 - 浏览器中显示的内容 - 以及在应用程序服务器上运行的实际应用程序逻辑和数据库。这可以称为3层,因为有数据库服务器,应用程序服务器和客户机。然而,同样可以轻松地引用数据库层,逻辑层和表示(或UI)层。



层和层架构中的差异 [ ^ ]

http://stackoverflow.com/questions/1182303/n-tiered-vs-n-layered-architecture-design [ ^ ]
People often use the two terms interchangably in that they can describe an architecture as being both multi-layered and multi-tiered. My take on it is that generally a tier refers to some physical separation while a layer is more of a logical separation.

For example, a typical web application I would say has a front end - what's displayed in the browser - and the actual application logic running on the application server, and a database. This could be referred to as 3 tiered, since there is a database server, an application server and the client machine. Just as easily, however, one may refer to the database layer, the logic layer and the presentation (or UI) layer.

Difference in layer and tier architecture[^]
http://stackoverflow.com/questions/1182303/n-tiered-vs-n-layered-architecture-design[^]


在层与层之间混淆是一个常见的错误。

层是一个逻辑层,它是应用程序架构设计的一部分。它讨论了应用程序不同部分的逻辑分离,如UI,DAL ...

Tier是代码运行的物理位置。例如,您可能有一个运行DAL的应用程序服务器和一个运行UI的Web服务器。
It's a common mistake to confuse between layer an tier.
Layer is a logical layer that part of the architectural design of an application. It talks about the logical separation of different parts of the application like UI, DAL...
Tier is a physical location where code run. For example you may have a application server to run DAL and a web server to run UI.


N层基本上是系统组件的物理分离,其中N层是逻辑的分离系统组件。

层级 - 应用程序中的层只是指应用程序中的实际物理分隔以及代码可能运行的位置(以及它可能如何运行)实际上已部署)。您可以将Tiers视为将部署图层的区域。

系统在处理阶段进行拆分。层可以被其他实现替换。示例:客户端/服务器是一个双层系统。我们还可以说,层是层的物理部署。



图层 - 层作为更多逻辑分隔符存在以分离和整理你的实际代码。您经常会听到业务逻辑层,表示层等术语。这些只是组织应用程序中所有代码的简单方法。

系统分为不同级别的抽象。可视化为堆栈。

例如

1)表示层或UI层

2)业务层或业务逻辑层

3)数据访问层或数据层
N-tier is basically the physical separation of your system components, where as N-layer is logical separation of your components of a system.
Tiers- A Tier within an application simply refers to actual physical separations within your application and where your code might run (and how it might actually be deployed). You can think of Tiers as the areas where your layers will be deployed.
System split in stages of processing. Tiers can be replaced by other implementations. Example: client/server is a two-tier system. We can also say that, tiers are the physical deployment of layers.

Layers- Layers act as more logical separators that exist to separate and organize your actual code. You'll often hear terms like "Business Logic Layer", "Presentation Layer" and others. These are simply ways to organize all of the code within your application.
System split in different levels of abstractions. Visualized as a stack.
e.g
1)Presentation Layer or UI Layer
2)Business Layer or Business Logic Layer
3)Data Access Layer or Data Layer


这篇关于b / w N层架构和N层层有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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