# Service Mesh

> Small helpers sit next to each service. They handle the calls between them.

**Field:** Software Development  
**Category:** Architecture  
**Also known as:** Sidecar Proxy, Mesh

## Think of it like

Think of it like giving each worker a helper. The helper takes their mail and keeps track of it.

## Definition

A service mesh is a layer that handles the traffic between services. The services do not have to. Next to each service runs a small proxy, often called a sidecar. All calls in and out pass through these proxies. They add encryption, retries, timeouts and traffic numbers without any change to the app code. It is mostly used when a company runs dozens or hundreds of services.

## Example

Lucy's company runs 120 services. With a service mesh, every call between them is encrypted and measured, and no team had to change its code.

## Why it matters

Each service gets the same safety and the same view. No team has to build it again.

## Common mistake

Adding a mesh to a handful of services. It brings many moving parts that a small system does not need.

## Three principles

- **A proxy per service.** The sidecar.
- **Handles the traffic.** Encryption, retries, numbers.
- **For many services.** Not a handful.

## Related terms

- [Microservices](https://learn.benibix.com/term/development/microservices)
- [API Gateway](https://learn.benibix.com/term/development/api-gateway)
- [Retry with Exponential Backoff](https://learn.benibix.com/term/development/retry-with-backoff)
- [Transport Layer Security (TLS)](https://learn.benibix.com/term/infrastructure/tls)
- [Kubernetes (K8s)](https://learn.benibix.com/term/infrastructure/kubernetes)

## Told apart from

- [API Gateway vs Service Mesh](https://learn.benibix.com/compare/api-gateway-vs-service-mesh): An API gateway and a service mesh both sit in the path of every request, but they guard two very different doors. A gateway is the front door, where calls from apps and browsers first come in. A service mesh handles the calls between services inside the system. Most big systems that use one end up using both.

---

Source: https://learn.benibix.com/term/development/service-mesh
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
