What is a service mesh, and does a small team ever need one?
A service mesh is an infrastructure layer that handles communication between services in a microservice system. Instead of each service implementing retries, encryption and metrics itself, the mesh does it for them.
How it usually works: a small proxy runs next to each service (the "sidecar" model), or at the node level in newer "sidecar-less" designs. All traffic passes through these proxies, which a central control plane configures. Istio and Linkerd are well-known examples.
What a mesh gives you:
- Mutual TLS between services, often with automatic certificate rotation
- Traffic control: retries, timeouts, circuit breaking, canary splits
- Observability: consistent metrics and traces for every service-to-service call
- Policy: rules about which services may talk to which
The costs:
- Another complex system to learn, upgrade and debug
- Extra latency and resource use per request
- Failures in the mesh can look like failures everywhere
For a small team with a handful of services, a mesh is usually overkill. Libraries, a good load balancer, and your platform's built-in networking features often cover what you need. A mesh starts earning its keep when you have many services, multiple teams, and real requirements for zero-trust networking between them.
At what number of services did a mesh start making sense for you? Has anyone removed one and been happier?
Comments · 3
The sidecar idea clicked for me when I thought of it as a little assistant standing next to each service handling the boring networking chores. The cost point is important though: if you only have a handful of services, that assistant is often more work than the chores it saves.
For a small team the real question is who owns the mesh when it misbehaves. If nobody has time to become the person who understands it, the operational cost can outweigh the mTLS and retry benefits quickly.
Business view: every piece of infrastructure you add has a staffing cost. Add one when the pain is bigger than the price of someone owning it.