Skip to main content
  1. 文章列表/

第一章-初识服务网格ServiceMesh

·100 字·1 分钟
目录

讲istio之前先讲下serviceMesh

ServiceMesh #

Service Mesh一词最早由开发 Linkerd 的 Buoyant 公司提出,并于 2016 年 9 月29 日第一次公开使用了这一术语。William Morgan,Buoyant CEO,对 Service Mesh 这一概念定义如下:

A service mesh is a dedicated infrastructure layer for handling [ service-to-service communication. It’s responsible for the reliable delivery of requests through the complex topology of services that comprise a modern, cloud native application. In practice, the service mesh is typically implemented as an array of lightweight network proxies that are deployed alongside application code, without the application needing to be aware.

翻译成中文如下:

Service Mesh 是一个专门处理服务通讯的基础设施层。它的职责是在由云原生应用组成服务的复杂拓扑结构下进行可靠的请求传送。在实践中,它是一组和应用服务部署在一起的轻量级的网络代理,并且对应用服务透明。

以上这段话有四个关键点:

  • 本质:基础设施层。
  • 功能:请求分发。
  • 部署形式:网络代理。
  • 特点:透明。

2017 年,随着 Linkerd 的传入,Service Mesh进入国内社区的视野,并且由国内的技术布道师们翻译成“服务网格”。

服务网格从总体架构上来讲比较简单,不过是一堆紧挨着各项服务的用户代理,外加一组任务管理流程组成。代理在服务网格中被称为数据层或数据平面(data plane),管理流程被称为控制层或控制平面(control plane)。数据层截获不同服务之间的调用并对其进行“处理”;控制层协调代理的行为,并为运维人员提供 API,用来操控和测量整个网络。

下图就很好的说明了服务网格的sidecar模式