从边车模式到 Service Mesh
从边车模式到 Service Mesh 所谓边车模式( Sidecar pattern ),也译作挎斗模式,是分布式架构中云设计模式的一种。因为其非常类似于生活中的边三轮摩托车而得名。该设计模式通过给应用程序加上一个“边车”的方式来拓展应用程序现有的功能。该设计模式出现的很早,实现的方式也多种多样。现在这个模式更是随着微服务的火热与 Service Mesh 的逐渐成熟而进入人们的视野。 什么是边车模式 在 Azure Architecture Center 的云设计模式中是这么介绍边车模式的: Deploy components of an application into a separate process or container to provide isolation and encapsulation. --- Sidecar pattern 这里要注意的是: 这里的 Sidecar 是分布式架构中云设计模式的一种,与我们目前在使用的 Istio 或 Linkerd 中的 Sidecar 是设计与实现的区别,后文中提到的边车模式均是指这种设计模式,请勿与 Istio 或 ...
