知识卡片

普通读书笔记卡 · 2313.e.5.f.10.b.3.h.1.b

事件过滤控制订阅范围

理解等级:中级

扇出把同一事件送给多个独立订阅者;主题过滤按类别选择,内容过滤按字段选择。过滤可减少无关处理,但消息结构仍是共同契约,新增订阅者也需要权限、容量和兼容性管理。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Event-driven Systems · 查看原书依据

      Fan-out: When a message is published to a topic, it is delivered to all active subscribers. This is particularly useful for broadcasting events. For example, when a price change occurs, all services interested in pricing (display, analytics, cache) receive the update.

    参考来源

    - 位置:《Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…》第06章《Event-driven Systems》(来源项目book-sources;源文件:extracted/Building Distributed Systems Designing scalable architectures with microservices, event-driven patterns, and robust deployment…/_epub-src/OPS/ch06.xhtml) - 结论依据:原文的机制或对比支持以下核心判断:扇出把同一事件送给多个独立订阅者;主题过滤按类别选择,内容过滤按字段选择。 本卡将相邻说明中的适用限制保留为解释。 - 原始内容:Fan-out: When a message is published to a topic, it is delivered to all active subscribers. This is particularly useful for broadcasting events. For example, when a price change occurs, all services interested in pricing (display, analytics, cache) receive the update.