Nguyen Le Phong

Do You Need a Service Mesh? Ask Your Incidents First

What a service mesh really does, what it can't fix, which production numbers to pull first, the failures it adds and how to pilot one with a rollback.

The incident review opens with one question: why did a single checkout take eight seconds? The logs show no obvious error. Order retried Payment twice. Payment waited on Inventory longer than Order's own deadline. Notify sent a success response after the user had already closed the tab. Once the path is up on the whiteboard, nobody is hunting one bug anymore. The rules for how services talk to each other live in five codebases, and no two of them agree.

A service map traces one checkout through API, Order, Payment, Inventory and Notify, with the retry and timeout paths marked.
Draw the slow request first. The mesh question only makes sense once you can explain this path.

This is the moment someone says "we should get a service mesh". Maybe. This post is about deciding that from your own incidents: what a mesh really does, what it can't fix, which numbers to pull first and how to pilot one with a way back. If you're still deciding whether to have microservices at all, start with The Real Bill for Microservices, Line by Line instead.

What a mesh actually does

William Morgan, one of the people behind Linkerd, gave the definition most people still use: "a dedicated infrastructure layer for handling service-to-service communication" (CNCF blog, 2017). In practice it has two halves. The data plane is a set of proxies that sit on every call. The control plane tells those proxies what to do. In Istio's classic setup, the data plane is Envoy running as a sidecar next to each service, and the control plane (istiod) handles service discovery, pushes routing config to the proxies and acts as the certificate authority for mTLS between workloads (Istio architecture). Linkerd uses the same split with its own small proxy written in Rust (Linkerd architecture).

The sidecar isn't the only option anymore. Istio's ambient mode runs a per-node Layer 4 proxy called ztunnel for mTLS, authentication and telemetry, and adds an optional Layer 7 waypoint proxy only for workloads that need HTTP-level routing (Istio ambient overview). So "a proxy in every pod" is one design choice, not the definition.

What you get from all this is one place to set mTLS, timeouts, retries, traffic splits and request metrics, for every service, in every language, without each team rebuilding the same client library.

One honest note on the source. The tl;dr at the top of Morgan's 2017 piece says "If you're building a cloud native application, you need a service mesh!" He built a mesh, so of course he'd say that. Your call should come from your incidents.

What it can't fix

A mesh works on the wire. It won't untangle service boundaries that were drawn in the wrong place, fix flaky application code, give a service an owner or split a database that half the platform writes to. It also can't tell you whether a synchronous call should exist at all. It can show you a tangled dependency graph in beautiful detail and leave every knot exactly where it was.

So the useful question is narrow: are the failures you keep paying for the kind a mesh reduces?

Pull your own numbers first

Before any vendor demo, collect a few weeks of these:

  • Latency per hop, not just at the edge. p50, p95 and p99 tell different stories, and the tail is where retries hide.
  • Errors by type: connection resets, deadline exceeded, 503s.
  • Retry amplification: how many downstream attempts one incoming request creates on a bad day.
  • Trace completeness: what share of traces run from the entry point to the last dependency without a gap.
  • mTLS coverage: the traffic you think is encrypted and authenticated versus the traffic that actually is.
  • Incident notes that mention policy drift, certificate expiry, mismatched client libraries or "it took two hours to figure out the call path".

The service count matters less than how often these come back and how much each one costs you.

An evidence board shows p95 latency, error rate, trace gaps and mTLS coverage side by side.
Four numbers you can pull this week. They make a better case than any conference talk.
What you seeDoes a mesh help?Try first
Retries and timeouts differ across services and languagesYes, one policy in one placeA shared client library, if you have one or two languages
Security asks for mTLS and workload identity everywhereYes, this is its strongest casePlatform-level TLS, if the service graph rarely changes
Traces stop at process boundariesPartly: proxies send spans, but apps still have to forward trace headers (Istio tracing)OpenTelemetry in the services that matter most
Services are coupled through a shared databaseNoFix the boundary
A chain of synchronous calls for one user actionNo, it only makes the chain visibleRethink the call, maybe make it async

When a mesh fits, and when it's too much

The case is strongest when several things line up. Teams ship in different languages, so no single library can enforce network behavior. Retry and timeout settings have drifted far enough to cause outages. Security needs mTLS across a service graph that changes every week. On-call keeps losing time because telemetry stops at each service. And there's a platform team that can run the control plane, upgrade it and answer the pager when it breaks.

It's too much when you have a handful of services in one language: a well-kept client library plus gateway policy covers most of it. If boundaries are still moving, a modular monolith may serve you better than more network hops. If basic logs, metrics, traces and health checks are missing, a mesh hands you new signals before you can use the old ones. And if nobody has time to own upgrades, certificates and the extra on-call, the work doesn't go away. It moves into a layer where one mistake reaches every service.

The failures a mesh brings with it

Retries are the classic trap. Google's SRE book shows how they multiply across layers: if three layers each allow 3 retries (4 attempts), one user action can turn into 64 attempts on the database (Addressing Cascading Failures). A mesh adds a layer. Istio's default HTTP retry policy is 2 retries when you don't set one (VirtualService reference), so an app that already makes 4 attempts can send 12 to the next hop through a single proxy. Istio's docs say it plainly: retry policies in your code and in the mesh "work independently, and therefore might conflict" (Istio traffic management).

Timeouts bite from the other side. Istio's HTTP timeout is disabled by default, so a mesh doesn't give you deadlines for free. The SRE book's answer is deadline propagation: set one absolute deadline at the top and pass what's left down the chain, so if 7 of 30 seconds are gone, the next call gets 23. A proxy waiting generously can't rescue a caller that has already given up.

When you adopt a mesh, make the policy explicit per route and pick one layer to own retries:

apiVersion: networking.istio.io/v1
kind: VirtualService
metadata:
  name: payment
spec:
  hosts:
  - payment
  http:
  - route:
    - destination:
        host: payment
    timeout: 2s
    retries:
      attempts: 1
      perTryTimeout: 900ms
      retryOn: connect-failure,refused-stream,reset

Here the whole request gets 2 seconds, with at most one retry and a per-try cap. The Istio reference notes that the route timeout also limits how many retries actually happen, which is what you want. Then remove the retry loop from the calling service, or turn the mesh retry off with attempts: 0. Pick one.

The rest of the list is less dramatic and just as real. Sidecars use CPU and memory, and thin capacity planning turns infrastructure into latency. One bad routing rule can send thousands of requests to the wrong place at once. Slow config propagation can leave some pods on the old policy and some on the new. A certificate rotation can break healthy services without a single code change. And when the control plane is down, your team should already know which behavior keeps running on the last config, what goes stale and whether security policy fails open or closed. Test that in staging; don't wait to read it in an incident.

Debugging changes too. The app logs a cancellation, the proxy logs an upstream reset and the dependency logs a 200. You need one trace ID across all three views. A mesh that only two people on the team understand is a risk, no matter how highly available the software is.

Pilot small, and design the way back first

Pick two or three services where the communication problem is already measured and the business impact is contained. Record the baseline: tail latency, error rate, retry amplification, trace completeness, time to diagnose, proxy CPU and memory, mTLS coverage. Write down what improvement would justify the extra operating cost. "We installed the mesh" isn't a result. Fewer repeat incidents or a faster diagnosis is.

Then break things on purpose before you trust the pilot: a slow dependency, dropped connections, an expired certificate, a bad route, the control plane switched off. Watch the app's view and the proxy's view during the same test, and make sure you can explain what happened.

A service topology highlights only Order and Payment inside a small mesh pilot, with a rollback route drawn beside them.
Two services in the pilot, a rollback route drawn before day one. The rest of the platform stays out of reach.

Rollback gets designed before rollout. Keep the old routing and security config. Write down how a workload leaves the data plane and test the restart that takes. Know which protections move back to the app or the gateway in the meantime, and never let a rollback drop mTLS or rate limits without a fallback someone approved. Give the pilot an end date and stop conditions for latency, errors, resource use and on-call confusion.

Expand only when the pilot earns it. A wider rollout needs an owner, an upgrade policy, compatibility tests, resource budgets, alerts for the mesh itself and a clear line of responsibility. The mesh can own transport identity and traffic policy. App teams still own business contracts, data integrity, idempotency and whether a call should be synchronous in the first place.

Try this week

  • Take your slowest request from last month and draw its full path, with every retry and timeout on it.
  • Count how many attempts one bad request creates at the bottom of that path.
  • Decide which layer owns retries for that path, and remove them everywhere else.
  • Check that a deadline set at the edge actually reaches the last service.
  • Only if those numbers still hurt after the cheap fixes, plan a two-service pilot with a written rollback.
What did you think?

Frequently asked questions

What is a service mesh in simple terms?
A service mesh is an infrastructure layer for service-to-service traffic. Proxies sit on every call (the data plane) and a control plane configures them, so you can set mTLS, timeouts, retries, traffic splits and request metrics in one place instead of in every service's code.
When should you not use a service mesh?
Skip it when you run a handful of services in one language, when service boundaries are still changing, when basic logs, metrics and tracing are missing, or when nobody can own upgrades, certificates and on-call for the mesh. A shared client library and gateway policies cover most needs at that stage.
Can a service mesh make retries worse?
Yes. Retries multiply across layers: Google's SRE book shows three layers with 3 retries each turning one user action into 64 attempts. Istio retries HTTP requests twice by default, so if your app also retries, the attempts stack. Pick one layer to own retries and set explicit timeouts.