知识卡片

普通读书笔记卡 · 3244.e

网格过滤器不应承载业务

理解等级:高级

网格过滤器可扩展通信治理,却不宜放入载荷转换等领域业务逻辑。把业务判断放到基础设施层,会使服务变更与网格配置耦合,模糊负责团队。网格保持路由、韧性、观测和安全等通用职责,业务语义交给服务处理。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      With the emergence of service mesh plug-ins or traffic filters, and supporting technologies like Web Assembly (Wasm), it is increasingly tempting to think of service meshes as offering ESB-like functionality, such as payload transformation and translation. For all the reasons already discussed throughout this book, we strongly discourage adding business functionality or coupling too many “smarts” with the platform or infrastructure.

    参考来源

    - 位置:《Mastering API Architecture》第4章《Service Mesh: Service-to-Service Traffic Management》之《Service Mesh as ESB》(源文件:_epub-src/OEBPS/ch04.xhtml) - 结论依据:原文指出过滤器与 Wasm 使网格容易被用作 ESB 做载荷转换,但明确反对把业务功能耦合进平台基础设施。 - 原始内容:With the emergence of service mesh plug-ins or traffic filters, and supporting technologies like Web Assembly (Wasm), it is increasingly tempting to think of service meshes as offering ESB-like functionality, such as payload transformation and translation. For all the reasons already discussed throughout this book, we strongly discourage adding business functionality or coupling too many “smarts” with the platform or infrastructure.