首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >N层与N层架构/设计

N层与N层架构/设计
EN

Stack Overflow用户
提问于 2009-07-25 15:24:18
回答 3查看 19K关注 0票数 18

N层和N层架构/设计是什么意思?

N层和N层架构/设计之间有什么区别吗?

若有,分别在哪里?

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2009-07-25 15:37:49

人们经常交替使用这两个术语,因为他们可以将体系结构描述为多层和多层。我的理解是,一般来说,层指的是某种物理分离,而层更多的是逻辑分离。

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

票数 22
EN

Stack Overflow用户

发布于 2009-07-25 15:35:41

N层指的是系统的“分布式”层(即服务器和客户端),而n层指的是自包含程序中的层;虽然这两个层经常可以互换使用,但有些人认为有一个显著的差异(就像我上面提到的那个),就像维基百科上关于Multitier architectureMultilayered architecture的第一段所看到的那样,解释了这种差异。

票数 17
EN

Stack Overflow用户

发布于 2010-11-10 06:45:09

SCEA Study Notes解释了分层体系结构和分层体系结构之间的JEE差异。

Java EE系统的层

代码语言:javascript
复制
* Client (GUI and Web): GUI directly interacts with web tier. Web uses browser, applets to interact with web server through HTTP. Responsible for direct presentation and interaction with user.
* Web components: processes web requests. Acts as mediator between clients and business components.
* Business: (solves domain-specific) business problems. The abstract business logic processing happens in this tier.
* Integration and Resource: handles connectivity with data stores and other (legacy) systems. 

Java EE系统的层

代码语言:javascript
复制
* Virtual platform (component APIs): used to implement/support business logic. API Components include: JavaBeans, Java Servlets, JavaServer Pages/Faces, Java Message Service API, Java Transaction API, etc.
* Application infrastructure (container): responsible for executing the application. Also provides services like: security, transactions, JNDI, and other connectivities.
* Enterprise services (OS): responsible for the execution environment of the application infrastructure. Provides computing time and access to (abstract) hardware.
* Compute and storage: the hardware or physical server. Provides computing power for the OS.
* Networking infrastructure: responsible for networking services. 
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/1182303

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档