From 2d90bd03189a84163bd324b940e1e96536cfc8c4 Mon Sep 17 00:00:00 2001 From: hello Date: Thu, 19 Sep 2024 16:02:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=BE=E8=AE=A1=E6=80=BB?= =?UTF-8?q?=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- notes/helloshop/distributed-events.drawio | 242 ++++++++++++++++++++++ notes/helloshop/distributed-events.md | 17 ++ 2 files changed, 259 insertions(+) create mode 100644 notes/helloshop/distributed-events.drawio create mode 100644 notes/helloshop/distributed-events.md diff --git a/notes/helloshop/distributed-events.drawio b/notes/helloshop/distributed-events.drawio new file mode 100644 index 0000000..39f11d4 --- /dev/null +++ b/notes/helloshop/distributed-events.drawio @@ -0,0 +1,242 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/notes/helloshop/distributed-events.md b/notes/helloshop/distributed-events.md new file mode 100644 index 0000000..990c28d --- /dev/null +++ b/notes/helloshop/distributed-events.md @@ -0,0 +1,17 @@ +# 分布式总线设计 + +## 抽象分布式总线 + +使用设计模式,将分布式总线抽象为一个接口,定义了总线的基本功能。 + +![event-bus-abstraction](https://oss.xcode.me/notes/helloshop/event-bus-abstraction.svg) + +## 基于事件总线的组件 + +![event-bus-component](https://oss.xcode.me/notes/helloshop/event-bus-component.svg) + +https://github.com/dotnet/eShop/tree/main/src/EventBusRabbitMQ + +## 事件总线的 Dapr 实现 + +![event-bus-endpoint](https://oss.xcode.me/notes/helloshop/event-bus-endpoint.svg)