Service Mesh

Envoy sidecar, Istio vs Linkerd, mTLS between services, traffic management, observability, and eBPF alternatives.

Overview

A service mesh is an infrastructure layer that handles service-to-service communication in a microservices architecture. It uses a sidecar proxy pattern: a proxy (Envoy) is injected into every pod. All inbound and outbound traffic from the application flows through the sidecar, transparent to the application code.

Control plane vs data plane

  • Control plane (Istiod) — distributes configuration to all sidecars: service endpoints, traffic policies (retries, timeouts, circuit breakers), and certificates for mTLS
  • Data plane (sidecars) — enforces policies on every request

Key concepts

  • Sidecar proxy
  • mTLS in mesh
  • VirtualService (Istio)
  • DestinationRule (Istio)
  • eBPF service mesh (Cilium)

Interview questions

  • How does Istio implement mTLS between two microservices without changing the application code?

Sign up free to read the full topic

More Networking topics

Start free on Cariara · Coding problems · System design studio