Service Mesh
A dedicated infrastructure layer for service-to-service (East-West) communication that provides mTLS encryption, traffic splitting, retries, and telemetry transparently without changing app code
Table of Contents
Structure Diagram
What is Service Mesh?
A dedicated infrastructure layer for service-to-service (East-West) communication that provides mTLS encryption, traffic splitting, retries, and telemetry transparently without changing app code. It is a core concept in Traffic & Scaling within Cloud / DevOps.
Core Principles
A Service Mesh abstracts service-to-service (East-West) networking, security, and observability out of application code into a dedicated infrastructure layer.
It splits into a Data Plane of lightweight proxies intercepting traffic alongside workloads, and a Control Plane that dynamically distributes routing policies, short-lived mTLS certificates, retries, and circuit breakers. This guarantees uniform security and telemetry across polyglot microservices (Go, Java, Node.js, Python) with zero SDK lock-in.
Practical Takeaways
- Adopt only when scale justifies the complexity: For small teams with fewer than 10 services, a service mesh adds unnecessary CPU/memory overhead and operational burden. Introduce it when multi-language mTLS, fine-grained traffic splitting, or zero-trust compliance becomes critical.
- Evaluate sidecarless architectures: Modern options like Istio Ambient Mode and eBPF-based Cilium Service Mesh reduce per-pod proxy overhead significantly.
- Prevent retry storms: Never enable aggressive automatic retries in both application HTTP clients and mesh proxies simultaneously; consolidate retry budgets in one layer.
Notable Examples
- Istio: Feature-rich CNCF graduated service mesh powered by Envoy Proxy with SPIFFE identity and advanced traffic management.
- Linkerd: Ultra-lightweight Rust-based service mesh prized for minimal latency and operational simplicity.
- Cilium Service Mesh: Leverages Linux eBPF in the kernel to deliver high-performance networking and mesh security without per-pod sidecars.