Skip to content
IT glossary
ArchitectureUpdated December 3, 2026

Service Mesh

A service mesh is an infrastructure layer that manages network calls between services. It lets teams configure routing, encryption, and traffic metrics without building those features into every application.

What problem does a service mesh solve?

Imagine that an orders service calls inventory and shipping. Each call needs a way to identify the other service, protect data in transit, and track failures. As the system grows, implementing these features separately in every application makes behavior harder to keep consistent. A service mesh moves common networking concerns into infrastructure while leaving business decisions in application code. Istio is one implementation of a service mesh, not another name for the concept.

What happens when a service makes a call?

The data plane is on the request path. Its proxies can select a destination, enforce access policies, and record traffic metrics. When mutual TLS (mTLS) is configured, both ends authenticate each other with certificates and the connection is encrypted. The control plane distributes configuration to those proxies; an ordinary service request does not go through it.

In a common Kubernetes setup, each participating pod has a sidecar, a proxy that runs alongside the application. Network rules steer traffic through the proxy without requiring the application to call it explicitly. A mesh does not have to use that layout. Istio's ambient mode, for instance, uses node-level proxies for basic connectivity and security, with optional waypoint proxies for HTTP-level routing and policy.

Example: changing where requests go

Suppose both versions of the inventory service are running, but you want to test the new one with real requests. A mesh routing rule can send about 5% of HTTP requests to version 2 and the rest to version 1 without changing the URL callers use. Compare the error rates and latency for the two versions. If version 2 performs poorly, change the routing weights to stop sending it new requests. That rolls back the traffic split, not any database writes the new version already made.

When is it worth running one?

A mesh is useful when many teams need consistent service identities, access rules, or traffic metrics across applications written in different languages. The trade-off is more infrastructure to operate: proxies consume CPU and memory, add work to the request path, and introduce another place to look when a call fails. A small system may be easier to run with built-in Kubernetes networking and a few application-level controls.

A mesh also doesn't replace an API gateway. A gateway is typically the entry point for external clients; a mesh mainly manages calls within the system. Nor can a mesh decide whether a user is entitled to cancel an order just because it knows which service sent the request.

How it comes up in interviews

Expect to be asked to trace a request and explain what happens when a component fails. For example, a control-plane outage does not normally stop existing proxies from forwarding traffic with the configuration they already have. New proxies can have trouble joining, rules may become stale, and a long outage can disrupt certificate renewal. Distinguishing those effects from a proxy failure shows that you know which components actually handle requests.