A service mesh is a configurable, low-latency infrastructure layer designed to handle all inter-service communication, security, and observability within a microservices or multi-agent architecture. It operates by deploying a network of lightweight proxies (the data plane) as sidecars alongside each service instance, which intercept and manage all inbound and outbound traffic. A centralized control plane provides policy and configuration management, enabling features like automatic service discovery, load balancing, encryption, and failure recovery without requiring changes to the application code itself.
