Skip to main content

Service mesh

A service mesh is a layer of infrastructure that manages communication between services. Open ENT applies the same principles to the communication between its modules, and can also run on top of a dedicated mesh.

What a mesh provides​

AreaFunctions
Traffic managementRule-based routing, load balancing, canary and blue-green releases
SecurityPolicies on which services may talk to each other, mutual TLS between services
ObservabilityDistributed tracing, metrics, centralized logs
ResilienceRetries and timeouts, circuit breakers, rate limiting

Moving these cross-cutting functions out of the modules keeps module code focused on its own logic.

How a mesh works​

A mesh has two parts:

  1. The data plane carries the traffic. It is made of proxies deployed next to each service instance, usually as sidecar containers.
  2. The control plane configures the data plane: routing rules, security policies, metrics collection.

The proxies intercept every call between services and apply the policies set by the control plane.

Common implementations​

  • Istio, widely used with Kubernetes, with a broad set of traffic, security and observability functions.
  • Linkerd, a lighter mesh focused on simplicity and performance.
  • Consul Connect, which combines a mesh with service discovery.

In Open ENT​

A dedicated mesh is optional. Without one, the ingress load balancer distributes requests between the pods of a module, and modules exchange messages on a clustered event bus. Adding a mesh brings finer load balancing, progressive releases and circuit breaking. See Scaling.