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)