go-pattern-examples/gomore/messages/README.md
2020-04-28 22:16:13 +08:00

12 lines
557 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 发布订阅模式
发布-订阅是一种消息传递模式,基本设计原则是将消息发布者和提供者分开,常常用于在不同组件之间传递消息。
![图示关系](../../images/pub-sub-pattern-0.png)
发布订阅模式往往实现为<消息代理消息中间件消息队列>
该模式中的三个关键类型:消息本身、消息主题、订阅用户。
![图示关系](../../images/pub-sub-pattern-1.png)
图片来源:[pubsub-pattern.md](https://github.com/imsardine/dev-notes/blob/source/docs/pubsub-pattern.md)