What is a service mesh? It is a dedicated infrastructure layer that manages communication between the services of an application, handling traffic routing, security, reliability and observability without requiring changes to application code. In a microservices system, every call between services can fail, be slow or be intercepted. A service mesh places a lightweight proxy next to each service, and a central control plane configures those proxies, so that encryption, retries, timeouts, access policies and telemetry are applied consistently everywhere. This guide explains how a service mesh works, its benefits and costs, how it differs from an API gateway, the main products and how to decide whether you need one.
Short answer: A service mesh moves service to service networking concerns, such as mutual TLS, retries, traffic splitting and metrics, out of application code and into proxies managed by a control plane. It brings consistency and visibility to large microservice estates, at the price of extra components and complexity.
What is a service mesh?
The service mesh article on Wikipedia describes it as a way to control how different parts of an application share data. It is most useful with microservices running on container orchestration platforms such as Kubernetes. It deals with traffic inside the platform, sometimes called east west traffic, while an API gateway handles traffic entering from outside.
How a service mesh works

- A proxy is placed beside every service. Usually a sidecar container, though some meshes use a per node proxy instead.
- Traffic is intercepted. All inbound and outbound calls pass through the proxy transparently.
- The control plane configures proxies. It distributes routing rules, security policy and certificates.
- Identity and encryption are applied. Each service receives a certificate, and proxies set up mutual TLS between them.
- Reliability rules run. Proxies apply timeouts, retries, circuit breaking and load balancing.
- Telemetry is collected. Proxies emit metrics, logs and traces for every call. See what is observability.
- Operators change behaviour centrally. A new routing or security rule applies without redeploying services.
Capabilities of a service mesh
| Area | What the mesh provides | Example |
|---|---|---|
| Security | Mutual TLS, service identity, authorisation policy | Only the billing service may call the ledger |
| Traffic management | Routing, canary releases, traffic splitting, mirroring | Send 5 percent of traffic to a new version |
| Reliability | Retries, timeouts, circuit breakers, rate limits | Stop calling a failing dependency |
| Observability | Uniform metrics and tracing for every service call | Latency per service pair |
| Resilience testing | Fault injection | Simulate a slow dependency |
| Multi cluster connectivity | Secure communication across clusters or clouds | Failover between regions |
Service mesh compared with related components
| Component | Scope | Main job |
|---|---|---|
| Service mesh | Service to service inside the platform | Security, reliability and telemetry for internal calls |
| API gateway | Client to service at the edge | Authentication, rate limiting and routing for external callers |
| Ingress controller | Entry into a cluster | Basic HTTP routing and TLS termination |
| Application libraries | Inside each service | Similar features, but coded per language and team |
| Network policy | Layer 3 and 4 in the cluster | Allow or deny connections without identity or telemetry |
Popular service meshes
| Product | Notes |
|---|---|
| Istio | Feature rich, large community, now offers a lighter sidecar free mode |
| Linkerd | Lightweight and simple to operate |
| Consul service mesh | Works across Kubernetes and virtual machines |
| Cilium service mesh | Uses eBPF in the kernel to reduce proxy overhead |
| Cloud provider meshes | Managed options integrated with each cloud |
Benefits and costs
| Benefits | Costs and risks |
|---|---|
| Consistent security and encryption across all services | More moving parts to install, upgrade and troubleshoot |
| Uniform telemetry without changing code | Extra latency and resource use per request |
| Safer releases through traffic splitting | Learning curve for platform and application teams |
| Central policy and audit | Misconfiguration can disrupt many services at once |
| Works with any language | Overkill for a handful of services |
How to decide and adopt
- Check the need. Look for pain such as inconsistent retries, no encryption between services or poor visibility across dozens of services.
- Try simpler options first. Network policies, libraries and an ingress may be enough for a small estate.
- Pick the mesh. Weigh features, operating effort, community and compatibility with your platform.
- Pilot on a few services. Enable the mesh for one namespace and measure latency, resource use and operational effort.
- Roll out security first. Turn on mutual TLS in permissive mode, then enforce it once all traffic is covered.
- Add traffic management. Use canary releases and retries where they bring clear benefit.
- Automate and monitor. Manage mesh configuration as code and watch the mesh itself. See what is GitOps.
Common service mesh mistakes
- Installing a mesh for a few services where it adds more cost than value.
- Enabling every feature at once and overwhelming the team.
- Retrying aggressively, which multiplies load on a struggling service.
- Forgetting to plan upgrades, which can break compatibility.
- Treating the mesh as a replacement for application level authorisation.
- Not measuring the overhead of proxies on latency and cost.
Our DevOps service designs and operates service mesh and platform security, and our system integration service connects the mesh to your wider architecture.
A worked example: securing a payments platform
A fintech company has sixty services in several languages, and each team implemented retries and encryption differently. An audit finds that some internal calls are unencrypted and that nobody can trace a slow payment across services. The platform team adopts a service mesh, starting with mutual TLS in permissive mode on one namespace to see which connections exist.
After mapping traffic, they enforce encryption and write authorisation policies so that only named services may call the ledger. Standard timeouts and limited retries replace the patchwork of code, and dashboards show latency for every service pair. Canary routing lets the team send a small share of traffic to new versions of the payments service, and an automatic rollback follows if errors rise. Audit findings are closed with evidence from mesh configuration, and developers spend less time on networking code.
Sidecar and sidecarless models
Traditional meshes inject a proxy into every pod, which gives strong isolation per workload but adds memory, CPU and operational overhead. Newer designs run proxies per node or use kernel level technology such as eBPF for basic functions, applying a heavier proxy only where advanced features are needed. Each model has trade offs in security isolation, performance and maturity, so test with your own traffic. Whichever you choose, treat the mesh as part of the platform product, with owners, upgrade plans and clear documentation for developers.
Operating a mesh day to day
Treat mesh configuration like application code. Store it in version control, review changes, test them in a staging cluster and roll them out gradually. Keep a small set of standard policies, such as default deny between namespaces with explicit allows, so that teams get safe behaviour by default and only need to describe exceptions. Monitor the control plane and proxies, set alerts for certificate expiry and keep upgrade windows regular. Document how developers can see their own service telemetry and request policy changes, because adoption depends on teams trusting the mesh rather than working around it.
Key takeaways
- A service mesh manages service to service communication using proxies and a control plane.
- It provides mutual TLS, traffic management, reliability features and uniform telemetry.
- It complements an API gateway, which handles traffic from outside.
- Adopt it when scale and security needs justify the extra complexity.
- Start with security and visibility, pilot small and automate configuration.
Quick glossary
| Term | Meaning |
|---|---|
| Sidecar | A proxy container deployed beside a service |
| Control plane | The part that configures proxies and policy |
| Mutual TLS | Both sides of a connection authenticate and encrypt |
| Circuit breaker | A rule that stops calls to a failing service |
| East west traffic | Traffic between services inside a platform |
Read next: What Is Container Orchestration? Kubernetes and Beyond · What Is Cloud Security? Shared Responsibility and Controls · What Is Zero Trust? Principles, Architecture and Roadmap
Frequently asked questions
What is a service mesh in simple terms?
It is an infrastructure layer that handles how services talk to each other, adding encryption, retries, routing rules and metrics without changing the application code.
Do I need a service mesh?
Usually only when you have many microservices and need consistent security, traffic control and visibility. For a few services, simpler tools are often enough.
What is the difference between a service mesh and an API gateway?
A gateway manages traffic coming into your system from clients. A service mesh manages traffic between services inside it.
What is a sidecar proxy?
A sidecar is a small proxy container that runs next to each service and intercepts its network traffic so that the mesh can apply policy and collect telemetry.
Does a service mesh slow down applications?
It adds a small amount of latency and uses extra CPU and memory for proxies. Measure the effect for your workload and consider lighter modes if needed.
Which service mesh should I choose?
Istio is feature rich, Linkerd is lightweight and simple, Consul suits mixed environments and Cilium uses eBPF. Choose by needs and team skills.
Can a service mesh work with virtual machines?
Some meshes, such as Consul and Istio, can include virtual machines alongside Kubernetes workloads.
Is a service mesh a security tool?
It strengthens security through encryption and identity based policy, but it does not replace application level authorisation or other controls.
