Lesson 1 of 9 · 23m
What the Service Mesh Actually Does
Separate control plane from data plane, learn what sidecars and ambient meshes intercept, and avoid mistaking packaging for architecture.
A service mesh is not magic networking. It is a policy enforcement point inserted into service-to-service traffic, plus a control plane that programs that point consistently. The day-one mental model is simple: your application still opens sockets; the mesh decides which identities may talk, how connections are encrypted, where traffic goes, and what telemetry is emitted.
Two planes, two failure domains
The data plane carries requests. In Istio that is usually Envoy sidecars or ztunnel/waypoint proxies in ambient mode; in Linkerd it is the lightweight Rust proxy. The control plane distributes configuration and certificates: istiod, Linkerd's control plane, Consul Connect servers, or similar components.
service A pod service B pod
┌───────────┐ mTLS/policy ┌───────────┐
│ app │ ─────────────▶ │ app │
│ proxy │ ◀───────────── │ proxy │
└─────┬─────┘ └─────┬─────┘
│ xDS/config + certs │
└──────────┬──────────────────┘
control planeIf the control plane is down, a healthy data plane usually keeps existing configuration but cannot receive updates or rotate some certificates. If the data plane is wedged, requests fail immediately. Know which failure you are looking at before restarting random things.
Interception is the product
A sidecar intercepts inbound and outbound traffic using iptables, nftables, or CNI plumbing. Your service believes it called http://payments; the proxy resolves policy, chooses an upstream, establishes mTLS, applies retries, records telemetry, and only then sends bytes.
apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
name: default
namespace: payments
spec:
mtls:
mode: STRICTThis small object changes deployment reality: plaintext clients that used to connect may now fail. A mesh is a network control rollout, not an observability add-on.
Sidecar and ambient are different operational bets
Sidecars give strong per-workload isolation and mature L7 policy but add one proxy per pod. Ambient meshes reduce per-pod resources and lifecycle coupling, but move some enforcement into shared node or waypoint components. Neither is automatically better. Sidecars fail beside the workload; shared components fail across workloads.
Field notes
- Draw the data path before debugging. Most mesh mysteries become obvious when you identify which proxy touched the request.
- The mesh does not make an insecure application secure. It authenticates connections; application authorization is still required.
- Treat the control plane as production infrastructure with SLOs, backups, upgrade windows, and blast-radius analysis.
- A mesh cannot fix absent service ownership. If nobody owns timeouts and dependencies, policy will be cargo-culted.
Was this lesson helpful?