简体   繁体   English

这是 UML 图吗?

[英]Is this a UML diagram?

Usually software architectures are described using some diagram like the below one (copied from Microsoft website .)通常软件体系结构使用如下图(从微软网站复制)来描述。

1) I don't think that this diagram belongs to any UML type, isn't it? 1)我不认为这个图属于任何 UML 类型,不是吗?

2) Does this diagram follow any kind of standard notation? 2)该图是否遵循任何标准符号? I want to learn how to draw these but I don't know its name.我想学习如何画这些,但我不知道它的名字。



在此处输入图像描述

I don't think that this diagram belongs to any UML type, isn't it?我不认为这个图属于任何 UML 类型,不是吗?

That does not follow UML notation, for instance as I know the only cases of a rectangle with dotted border are regions(interruptible, expansion) in an activity and your diagram is not at all for an activity.这不遵循 UML 表示法,例如,据我所知,带有虚线边框的矩形的唯一情况是活动中的区域(可中断,扩展),而您的图表根本不适合活动。

Does this diagram follow any kind of standard notation?该图是否遵循任何标准符号?

The more important is not to know if the notation looks like something from UML but to know what is represented.更重要的是不要知道符号是否看起来像来自 UML 的东西,而是要知道表示的是什么

As the title indicate that diagram shows the architecture, but with mixed types of elements, the closer possible in UML seems to be a deployment diagram, a little bit more far component diagram.正如标题所示,该图显示了体系结构,但具有混合类型的元素,UML 中更接近的可能是部署图,更远的组件图。

I'd say that this is a techno-marketing drawing that communicates an architecture in a way that sells.我想说这是一张技术营销图,它以一种销售的方式传达建筑。 It's about how elements in a project could be grouped and organized and the dependencies between those blocks (see legend about the arrows):它是关于如何对项目中的元素进行分组和组织以及这些块之间的依赖关系(参见关于箭头的图例):

  • You got it right: this is not a standard UML representation你没看错:这不是标准的 UML 表示

  • The closest UML diagram for presenting similar information could be a package diagram : the dotted boxes would be packages;用于呈现相似信息的最接近的 UML 图可能是package 图:虚线框是包; the rounded-boxes would be packages;圆框是包裹; the arrows would be dependencies.箭头将是依赖项。

  • But the run-time dependencies to third-party services and data-sources, as well as the redis cache icon, suggest that it could also be about deployment of components that would be presented in UML with a deployment diagram .但是运行时对第三方服务和数据源的依赖,以及 redis 缓存图标,表明它也可能是关于在 UML 中使用 部署图呈现的组件的部署。

So this diagram bears some ambiguity about what is really represented.所以这个图对真正表示的内容有些模糊。 The UML diagrams would require greater precision, which make them less appropriate for selling a complex architecture. UML 图需要更高的精度,这使得它们不太适合销售复杂的架构。 This is certainly why MS used a free-style diagram.这当然是 MS 使用自由式图表的原因。

Edit:编辑:

You may be interested in this engineering blog about a cloud architecture that refers to C4 modeling , a technique aiming to simplify visualization of complex architecture.您可能会对这个关于云架构的工程博客感兴趣,该博客涉及C4 建模,这是一种旨在简化复杂架构可视化的技术。 Its notation also uses dotted regions and smaller boxes to model containers (eg enclosing systems, and enclosed services and components).它的符号还使用虚线区域和较小的框来表示 model 容器(例如封闭系统,以及封闭的服务和组件)。 The promoters of this modelling technique claim it's related to UML packages and components, defending UML for more detailed levels of the architecture, and that simplified diagramming facilitates architectural discussions on a paper-board .这种建模技术的倡导者声称它与 UML 包和组件有关,为更详细的架构级别辩护 UML,并且简化的图表有助于在纸板上进行架构讨论。

The Microsoft diagram seems close to C4 when system boundaries are shown with dotted lines, and system internal services and components as rounded boxes and static structural relationships is visualized.当系统边界用虚线表示时,Microsoft 图似乎接近 C4,系统内部服务和组件为圆角框,static 结构关系可视化。 However Microsoft seems to make no reference to it and seems to call “maps” this kind of diagrams然而微软似乎没有提及它,并且似乎将这种图表称为“地图”

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

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