Service Mesh (Istio, Linkerd) ย้ายความกังวลเกี่ยวกับเครือข่ายระหว่างบริการ — retry, timeout, mTLS, traffic routing, observability — ออกจากโค้ดแอปพลิเคชัน ไปยังชั้น network infrastructure ของ sidecar proxies
วิธีการทำงาน
แต่ละ instance ของบริการทำงานข้างๆ sidecar proxy (เช่น Envoy) 交通ทั้งหมดไหลผ่านตัวเพื่อพรอกซี ซึ่งสร้าง data plane; control plane จะกำหนดค่าพวกเขา
text
┌─────────────────┐ ┌─────────────────┐
│ Service A │ │ Service B │
│ app ⇄ [proxy] │◀──────▶│ [proxy] ⇄ app │
└─────────────────┘ mTLS └─────────────────┘
▲ configured by ▲
└──── Control Plane (Istio/Linkerd) ────┘
