What is a Service Mesh (including the concept of a sidecar), and how does its purpose differ from an API Gateway?

Last updated 3 July 2026

  • A service mesh manages service-to-service (east-west) traffic. Its data plane is sidecar proxies (e.g. Envoy) intercepting every service's traffic, and its control plane (Istio, Linkerd) configures them.

  • It provides mTLS, retries, timeouts, circuit breaking, canary traffic splitting, and uniform telemetry, all without application code changes.

  • An API Gateway is a centralized edge component for external (north-south) traffic, focused on client-facing auth and rate limits. A mesh is distributed and focused on internal reliability and security. The two often coexist.

  • https://www.solo.io/topics/istio/service-mesh-vs-api-gateway
  • https://www.gravitee.io/blog/api-gateway-vs-service-mesh
  • https://www.digitalapi.ai/blogs/api-gateway-vs-service-mesh-whats-the-difference
  • https://www.baeldung.com/ops/istio-service-mesh
  • https://konghq.com/blog/tag/kuma
  • https://www.solo.io/topics/istio
  • https://medium.com/@rajkundalia/api-gateway-vs-service-mesh-beyond-the-north-south-east-west-myth-c67406984a46
  • https://www.youtube.com/watch?v=hUVBT7wA6Kw
All Microservices interview questions