简体   繁体   English

基于组件的体系结构与分布式系统

[英]Component-based architecture vs. Distributed system

Can we describe a component-based architecture as a distributed system for an example EJB is a component based architecture as well as it has qualities to become a distributed system? 我们是否可以将基于组件的体系结构描述为一个分布式系统,例如EJB是一个基于组件的体系结构,并且具有成为分布式系统的特质? So how can these two concepts combine together, or to differentiate. 因此,这两个概念如何结合在一起或加以区分。

Thanks. 谢谢。

"Component-based" means " separation of concerns ", whether those are: “基于组件”是指“ 关注点分离 ”,无论这些关注点是:

  • physical (with tiers , where each "compoents" represent a physical unit of separation/deployment, like a 3-tiers architecture with a web server (1 tier) delivering web pages (another tier) which draws on data from a database the 3rd tiers. See FinnNk 's answer for the question 3 Tier Architecture vs 2 Tier Architecture . 物理 (具有 ,其中每个“组件”代表分离/部署的物理单元,例如3层体系结构,其中Web服务器(1层)提供网页(另一层),该页面从第三层的数据库中获取数据有关3层架构与2层架构问题,请参阅FinnNk的答案。

  • logical (with layers with components representing responsibilities ). 逻辑 (具有代表职责的组件的 )。

The term component is "generic" enough to be applied to any architecture where you can identify several concerned which can be isolated. 术语“组件”足够“通用”,适用于可以识别几个可以隔离的相关问题的任何体系结构。

Hence, a distributed system can be viewed as a collection of physical components (the "nodes") or logical components (as for EJB : a server-side "component", here a "model" that encapsulates the "business logic" of an application) 因此,可以将分布式系统视为物理组件(“节点”)或逻辑组件(对于EJB :服务器端“组件”,这里是封装了服务器的“业务逻辑”的“模型”)的集合。应用)

In both cases you divide a system into parts. 在这两种情况下,您都将系统分为多个部分。

The difference in a distributed system is that the it can be called over the wire. 分布式系统的区别在于可以通过电线调用它。

You should have a look at the 4 pillars of service orientated architecture: 您应该了解面向服务的体系结构的四个支柱:

http://www.stsc.hill.af.mil/crossTalk/2007/09/0709LewisSmith.html http://www.stsc.hill.af.mil/crossTalk/2007/09/0709LewisSmith.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM