service-mesh

📁 g1joshi/agent-skills 📅 3 days ago
1
总安装量
1
周安装量
#54714
全站排名
安装命令
npx skills add https://github.com/g1joshi/agent-skills --skill service-mesh

Agent 安装分布

mcpjam 1
claude-code 1
replit 1
junie 1
zencoder 1

Skill 文档

Service Mesh

A Service Mesh is a dedicated infrastructure layer for handling service-to-service communication. It’s usually implemented as lightweight network proxies (Sidecars) deployed alongside the application code.

When to Use

  • Mature Microservices: You have 20+ services and managing retries, timeouts, and auth in each language is becoming a nightmare.
  • Zero Trust Security: You need mTLS (Mutual TLS) between all services.
  • Observability: You need uniform metrics (Gold signals) and tracing across a polyglot stack.

Core Concepts

Sidecar Proxy

The mesh injects a proxy (e.g., Envoy) next to your app container. Your app talks to localhost, the proxy handles the network magic.

Control Plane

The brain that configures the proxies (e.g., Istio Control Plane).

Data Plane

The set of proxies that actually route the traffic.

Features

  • Traffic Management: Canary deployments (1% traffic to v2), Circuit Breaking, Retries.
  • Security: mTLS rotation, Authorization policies.
  • Observability: Automatic metrics (latency, success rate) without code changes.

Best Practices

Do:

  • Assess if the Complexity is worth it. For small clusters, it’s overkill.
  • Use simpler alternatives (Linkerd) if Istio is too heavy.
  • Start with Observability features before enabling strict enforcement/mTLS.

Don’t:

  • Don’t use a Service Mesh to fix bad application code.
  • Don’t ignore the resource overhead (CPU/RAM) of sidecars at scale.

References