Skip to content

Service mesh

A service mesh is an infrastructure layer that manages communication between services. Proxies sit next to every service (or on every node) and handle the network concerns every service has: encrypting traffic with mutual TLS, proving service identity, retries and timeouts, traffic splitting for releases, and recording metrics and traces. A control plane configures all the proxies centrally.

Well-known meshes include Istio (opens in a new tab), Linkerd (opens in a new tab) and Cilium (opens in a new tab) service mesh, plus managed offerings from cloud providers. See also service mesh in the glossary.

Data plane and control plane1. The orders service makes an ordinary call; its proxy intercepts it. 2. The proxies establish mutual TLS, proving each service's identity, and apply retries and timeouts. 3. The receiving proxy checks that orders is allowed to call payments, then passes the request on. 4. The control plane issues certificates and pushes routing and security policy to every proxy; proxies report telemetry. Control planepolicy, certificates Orders serviceProxymTLS, retries, metricsProxymTLS, authorization Payments serviceTelemetrymetrics, traces1234
Data plane and control plane Proxies handle every call between services; the control plane distributes identity, certificates and policy to them.
  1. The orders service makes an ordinary call; its proxy intercepts it.
  2. The proxies establish mutual TLS, proving each service's identity, and apply retries and timeouts.
  3. The receiving proxy checks that orders is allowed to call payments, then passes the request on.
  4. The control plane issues certificates and pushes routing and security policy to every proxy; proxies report telemetry.
Area Capabilities
Security Mutual TLS between all services, service identity, service-to-service authorization policies
Traffic management Retries, timeouts, circuit breaking, traffic splitting for canary releases, fault injection for testing
Observability Consistent request metrics, distributed traces and access logs for every service, in any language

The value is consistency: these behaviors are the same for every service, in every language, without each team implementing them.

  • Sidecar proxies: a proxy (often Envoy (opens in a new tab)) runs alongside each service instance. Full features per workload, at the cost of resources and operational overhead per pod.
  • Sidecar-less (node or ambient) models: proxies run per node, with optional per-service proxies only where advanced features are needed. Lower overhead; newer and with different trade-offs.
  • Many services, written in several languages, owned by many teams.
  • A zero trust requirement for encrypted, authenticated traffic between all services.
  • Frequent releases that benefit from traffic splitting and consistent telemetry.
  • A handful of services, or a modular monolith. Libraries, a load balancer and an API gateway cover the needs with much less complexity.
  • A team without the capacity to operate and upgrade another distributed system. Consider a managed mesh, or wait.
  • Security, resilience and telemetry without code changes.
  • Consistent behavior across languages and teams.
  • Operational complexity: upgrades, certificate rotation, debugging the proxy layer itself.
  • Added latency and resource use per request.
  • Retries configured in both the mesh and the application can multiply load. See retries, timeouts and backoff.
  • Adopting a mesh for one feature (usually mTLS) and inheriting all of its complexity.
  • Duplicated retry policies in code and mesh.
  • Assuming the mesh handles authorization fully. It can decide which service may call which; only the service can decide whether this user may see this record.

Written and edited by Abhinav Taduka, enterprise software architect.