Skip to content

Commit 8e68f3d

Browse files
committed
docs(eventbus): 添加事件总线架构图
- 新增 eventbus.svg 架构图文件 - 提供事件总线组件的可视化展示 - 用于开发文档中的架构说明
1 parent 7f60459 commit 8e68f3d

6 files changed

Lines changed: 8 additions & 10 deletions

File tree

pages/public/eventbus.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

pages/public/plugin.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

pages/src/content/docs/development/eventbus.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: 事件总线
66

77
smart-mqtt 所有的数据、服务都是依托于事件总线驱动的。数据总线造就了 smart-mqtt 极具灵活的扩展性,熟练掌握并运用该特性可以轻松应对各类复杂的场景需求。
88

9-
![事件总线架构图](/public/eventbus.svg)
9+
![事件总线架构图](./img/eventbus.svg)
1010

1111
## 接口设计
1212

pages/src/content/docs/development/img/eventbus.svg

Lines changed: 3 additions & 0 deletions
Loading

pages/src/content/docs/development/img/plugin.svg

Lines changed: 3 additions & 0 deletions
Loading

pages/src/content/docs/development/plugin.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ smart-mqtt 企业版的几乎每项特性都是一个插件,并且插件与插
1010

1111
[事件总线](/smart-mqtt/development/eventbus/)章节中为大家展示了相对细致的 smart-mqtt 内部架构。但如果从**插件**视角重新审视 smart-mqtt,则会是另外一番景象(见下图)。
1212

13-
![插件架构图](/public/plugin.svg)
13+
![插件架构图](./img/plugin.svg)
1414

1515
通过订阅事件总线上不同类型的事件,并配套不同的实现策略,可以实现很多实用的功能。当然,你也可以完全脱离事件总线做一些有意思的插件,譬如:插件的热插拔、Broker服务动态启停等。
1616

0 commit comments

Comments
 (0)