A service mesh allows service developers to offload the the network communication work and focus more on the business logic.
What is a Service Mesh?
A service mesh is a configurable infrastructure layer for a microservices application. It makes communication between service instances flexible, reliable, and fast. The mesh provides service discovery, load balancing, encryption, authentication and authorization, support for the circuit breaker pattern, and other capabilities.
The service mesh is usually implemented by providing a proxy instance, called a sidecar, for each service instance. Sidecars handle inter‑service communications, monitoring, security‑related concerns – anything that can be abstracted away from the individual services. This way, developers can handle development, support, and maintenance for the application code in the services; operations can maintain the service mesh and run the app.
Istio, backed by Google, IBM, and Lyft, is currently the best‑known service mesh architecture. Kubernetes, which was originally designed by Google, is currently the only container orchestration framework supported by Istio.
Videos on Service Mesh
What is a service mesh in microservices architecture?
A service mesh addresses some of the key challenges when it comes to the realization of microservice architecture. A service mesh allows more leeway in selecting a diverse set of microservices implementation technologies, while focusing more on business logic, instead of investing more time on network functions between services.
Service Mesh and Service Discovery
A Service Mesh works with a service discovery protocol to detect services as they come up. Then, they age them gracefully when they disappear. Service discovery is a container management framework that keeps a list of instances that are ready to receive requests – or be discovered – by other services. Together, they create resilience in service‑to‑service communication.