此卡片不在当前主题的阅读序列中,可返回主题继续阅读。
知识卡片
发布订阅的契约
发布者向主题发布事件,订阅者接收关心的事件并处理。生产者不必知道具体消费者,但消费者必须理解事件的含义与格式;“不直接调用”减少位置依赖,并未消除语义约定。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Monoliths and Microservices · 查看原书依据
Similarly, the publish-subscribe model in event-driven architecture is a messaging pattern where services (publishers) publish events and send them to a particular topic. Subscribers listen for specific events on a topic and when they receive an event in the topic, they read the event and react to it without knowing which service emitted the event. This decoupling allows for scalable, flexible systems where components can
参考来源
- 位置:《Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…》第02章《Monoliths and Microservices》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…/_epub-src/OPS/ch02.xhtml)
- 结论依据:原文以服务职责、依赖或运行情境展开本卡主题;本卡保留其作用条件与代价,不把局部优势推广为无条件保证。
- 原始内容:Similarly, the publish-subscribe model in event-driven architecture is a messaging pattern where services (publishers) publish events and send them to a particular topic. Subscribers listen for specific events on a topic and when they receive an event in the topic, they read the event and react to it without knowing which service emitted the event. This decoupling allows for scalable, flexible systems where components can