知识卡片
多语言服务复用代理治理
多语言服务若分别实现路由、可靠性、观测和安全库,行为容易分叉且维护成本累积。服务网格把通用通信能力放在与应用同网络命名空间的代理中,使不同语言服务复用同一治理机制。代价是必须运营代理与控制面。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
However, if your application or system uses multiple programming languages—and a polyglot approach is quite common with microservice-based systems—this means that you will have to implement each library for each language used. As a service mesh is typically implemented using the sidecar pattern, where all service communication is routed through a network proxy external to the service but running within the same network namespace, the functionality required can be implemented once within the proxy and reused across all the services.
参考来源
- 位置:《Mastering API Architecture》第4章《Service Mesh: Service-to-Service Traffic Management》之《Supporting Cross-Functional Communication Across Languages》(源文件:_epub-src/OEBPS/ch04.xhtml)
- 结论依据:原文明确指出每种语言分别实现库的成本,并说明 sidecar 代理可跨语言复用通信能力。
- 原始内容:However, if your application or system uses multiple programming languages—and a polyglot approach is quite common with microservice-based systems—this means that you will have to implement each library for each language used. As a service mesh is typically implemented using the sidecar pattern, where all service communication is routed through a network proxy external to the service but running within the same network namespace, the functionality required can be implemented once within the proxy and reused across all the services.