Cloud & DevOps

What is Service Mesh?

Quick answer

An infrastructure layer that manages communication between microservices, handling traffic routing, security, and monitoring outside the application code.

Service Mesh, explained

In a microservices system, services constantly call each other over the network. A service mesh takes over the common concerns of that traffic, such as encrypting connections, retrying failed requests, balancing load, and recording metrics, usually by placing a small proxy next to each service. Popular examples include Istio and Linkerd.

For example, an e-commerce platform with separate services for catalogue, cart, and payments can use a service mesh to require encrypted, authenticated connections between them and to send a small share of traffic to a new version of the cart service for testing. Service meshes give consistent security and visibility without changing each application. However, they add operational complexity and resource overhead, so they are most useful in larger systems with many services.

Related terms

Guides that mention Service Mesh