Overview
This is a summary of what I researched about service meshes.
What is a Service Mesh?
A network infrastructure that manages communication between services (in a distributed system).
Typically, it is configured by adding a proxy as a sidecar to the services.
What a Service Mesh Solves
- Improved observability
- Management and control of communication between services
- Enhanced security of communication between services
Features of a Service Mesh
- Service Discovery
- Managing connection information for services via DNS or load balancers can cause delivery delays.
- By delegating the management of connection information to the service mesh, delivery delays can be minimized.
- Service Routing
- By allowing the service mesh to handle the routing of traffic between services, the routing can be flexibly changed.
- Fault Isolation
- e.g. Circuit Breaker
- Load Balancing
- Authentication and Authorization
- Instead of preparing mechanisms for each service, delegating to the service mesh can reduce the burden on each service.
- Observability
- Enhances the observability of traffic that spans multiple services.
- Enables tracing.
- Enhances the observability of traffic that spans multiple services.
Disadvantages of a Service Mesh
The following are common disadvantages associated with service meshes that require proxies. Proxyless service meshes (e.g. Traffic Director) are not subject to these limitations.
- Decreased communication performance
- Increased resource usage
References
- speakerdeck.com - Service Mesh Comprehensive Introduction/Get-Started-Service-Mesh
- cloud.google.com - Service Mesh in Microservices Architecture
- www.netone.co.jp - Introduction to Service Mesh
- aws.amazon.com - What is a Service Mesh?
- www.alpha.co.jp - Things to Know Before Implementing a Service Mesh
- www.redhat.com - What is a Service Mesh?
- qiita.com - Investigating Service Mesh
- www.infoq.com - Essential Guide to Service Mesh - Managing Inter-Service Communication in the Microservices Era
- https://dev.classmethod.jp - Understanding Service Mesh