Hard java docker

What is a service mesh, and what are Istio basics?

The 30 second answer

A service mesh is an infrastructure layer that takes over service-to-service traffic: typically a proxy sidecar next to each instance, plus a control plane that pushes policy. Istio's data plane is Envoy; the control plane issues certificates, routes and authorization policy. I use it when I need fleet-wide mTLS, consistent retries and timeouts, or L7 traffic shifting, without putting that logic in every application. It is not a substitute for application authorization or a good API design.

Could you say this in an interview?

A service mesh moves cross-cutting concerns of RPC — encryption, identity, timeouts, retries, observability of hops — out of library code and into a proxy that sits in the request path. Istio's documentation describes two parts: the data plane (Envoy proxies, often as sidecars or a ztunnel/ambient mode) and the control plane (istiod) that issues certificates and distributes configuration.

What I would actually use it for:

  • mTLS between workloads, with identities in certificates, and PeerAuthentication / AuthorizationPolicy to require it.
  • Traffic policy that is the same for every language: timeouts, bounded retries, circuit breaking, and weighted routing for a canary.
  • Telemetry of those hops, without each team inventing a client.

What I would not claim: that a mesh makes a poorly designed API reliable, or that I can skip authorization in the application. A mesh is also operational cost (another control plane, another proxy on the path). For two services in one team, library timeouts and platform TLS may be enough.

apiVersion: security.istio.io/v1
kind: AuthorizationPolicy
metadata:
  name: payments-allow-checkout
  namespace: shop
spec:
  selector:
    matchLabels:
      app: payments
  action: ALLOW
  rules:
    - from:
        - source:
            principals: ["cluster.local/ns/shop/sa/checkout"]
      to:
        - operation:
            methods: ["POST"]
            paths: ["/payments"]
Sources (3)
  1. Istio: What is Istioistio.io
  2. Istio: Security (mTLS and identity)istio.io
  3. Istio: AuthorizationPolicyistio.io