Lk
Lab notes

Case study

The Service Mesh We Ripped Out After Three Months

A fintech client adopted Istio because their architecture was 'ready for it.' Three months later, debugging was harder, latency was worse, and nobody on the team could explain what the sidecar proxies were actually doing.

The CTO said it with complete confidence during our kickoff call: "We're at the point where we need a service mesh." They had twelve microservices running on Kubernetes, a small platform team of three engineers, and a vague sense that their inter-service communication was "getting complex."

I asked what specific problems they wanted to solve. The answer was a list of things they'd read about: mutual TLS between services, traffic shaping, canary deployments, and observability. When I pressed on which of these were causing actual pain today, the room got quiet.

They installed Istio anyway, before my engagement formally started.

The first week was fine

The initial rollout went smoothly enough. The platform team followed Istio's getting-started guide, injected sidecars into two services in staging, and watched the Kiali dashboard light up with a service graph. Everyone was impressed. The graph showed traffic flowing between services in real time, and it felt like progress.

But production is not staging. When they enabled sidecar injection across all namespaces, things started getting interesting.

Latency crept up everywhere

The first complaint came from the payments team. Their service-to-service calls to the fraud detection API had gone from 12ms to 45ms. Not catastrophic, but enough to push their end-to-end payment flow past the 200ms target they'd committed to in their SLA.

The sidecar proxy adds a hop on both sides of every request. For most services, the extra 5-15ms per call was invisible. But the payments flow made seven internal calls in sequence. Each hop added its overhead, and the tax compounded.

Before Istio:
  Payment API → Fraud Check → Account Service → Ledger → Response
  Total: 84ms (p95)

After Istio:
  Payment API → [envoy] → Fraud Check → [envoy] → Account Service → [envoy] → Ledger → [envoy] → Response
  Total: 147ms (p95)

The platform team's response was to tune Envoy's connection pooling and enable HTTP/2 between sidecars. It helped. They got down to 120ms. Still 40% slower than before, and they'd spent a week on it.

Debugging got harder, not easier

The observability story was supposed to be one of Istio's selling points. And the dashboards were genuinely pretty. But when an actual incident happened — a downstream service started returning 503s intermittently — the mesh made troubleshooting worse.

The error could be originating from the service itself, from the sidecar in front of it, from the sidecar of the calling service, or from an Istio policy that was rejecting the traffic. The team spent two hours checking Envoy configs, DestinationRules, and PeerAuthentication resources before someone bypassed the mesh entirely with a direct pod-to-pod curl and confirmed the service itself was just crashing on certain inputs.

The mesh had turned a simple "this service has a bug" into a distributed systems mystery.

Nobody understood the YAML

By month two, the platform team had accumulated around forty custom Istio resources: VirtualServices, DestinationRules, ServiceEntries, AuthorizationPolicies. When I asked each team member to explain what a specific VirtualService was doing, I got three different answers.

This wasn't their fault. Istio's configuration surface is enormous. The team was maintaining Kubernetes manifests, Helm charts, and now a parallel layer of mesh configuration that interacted with both in subtle ways. A misconfigured DestinationRule once silently disabled retries for a service that depended on them, and nobody noticed until the upstream had a brief hiccup and requests started failing instead of retrying.

Warning

If your team can't explain what a piece of infrastructure is doing without checking three different config files, you've exceeded your complexity budget.

What they actually needed

When I sat down with the team to list the problems they'd originally wanted to solve, the answers were more modest than a service mesh:

Mutual TLS between services. Their Kubernetes cluster already ran on a private VPC with network policies. The threat model they were worried about — a compromised pod intercepting traffic — could be addressed with a simpler mTLS solution at the ingress level, plus NetworkPolicies to restrict pod-to-pod communication. They didn't need every sidecar negotiating TLS for every internal call.

Canary deployments. They wanted to roll out new versions to 5% of traffic first. Kubernetes-native solutions like Argo Rollouts handle this without a mesh. They'd just never evaluated it.

Observability. The distributed tracing they loved from Istio's dashboards could be achieved by instrumenting their services with OpenTelemetry directly. It's more work per service, but you end up with traces that actually show what your code is doing, not just what the proxy layer sees.

The removal

Ripping out a service mesh is not trivial. We spent a week on it. The hardest part wasn't the technical migration — disabling sidecar injection, removing CRDs, and cleaning up was tedious but straightforward. The hard part was replacing the few things that were actually useful.

We replaced the mesh with:

  • NetworkPolicies for pod-to-pod traffic restriction
  • cert-manager with a private CA for TLS where it was actually needed
  • Argo Rollouts for canary deployments
  • OpenTelemetry SDK instrumentation for tracing

Each of these was simpler to operate, easier to debug, and understood by more than one person on the team.

The real lesson

Service meshes solve real problems. If you're running hundreds of services across multiple clusters with different teams who can't coordinate on shared libraries, a mesh gives you a uniform layer of control. That's valuable.

But this team had twelve services and three platform engineers. They didn't need a uniform control plane — they needed to talk to each other. The mesh was a substitution: technology standing in for communication.

The CTO asked me afterward how they'd know when they're actually ready for a service mesh. I told him: when you've exhausted the simpler options and can point to a specific operational problem that only a mesh solves. Not "we might need traffic shaping someday." Not "other companies our size use it." A real problem, today, that you've tried to solve without a mesh and couldn't.

Three months after the removal, their payment latency was back to its original numbers. Their on-call engineers could debug incidents without consulting Envoy documentation. And the platform team was spending their time on things that mattered to the product teams instead of maintaining infrastructure that existed to justify itself.

Sometimes the most useful architecture decision is admitting you don't need the thing you just built.