sidecar

Implement the Sidecar pattern for mTLS, retries, and logging in microservices.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/hung-phan/system-skills --skill sidecar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sidecar
Source: https://github.com/hung-phan/system-skills/tree/main/skills/system-review/references/architecture-patterns/sidecar
Command: npx skills add https://github.com/hung-phan/system-skills --skill sidecar

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires envoy, linkerd, dapr, opa, and includes scripts (resource) and references (resource) components.

What problem does it solve?

The Sidecar pattern addresses the need for cross-cutting concerns in microservices architecture, enhancing security, observability, and reliability while reducing complexity.

Core Features & Use Cases

  • Cross-Cutting Concerns: Handles concerns like mTLS, retries, logging, metrics, and secret management uniformly across services.
  • Service Mesh Integration: Supports service mesh adoption by serving as the data plane in service mesh environments.
  • Legacy App Modernization: Enables modern controls like mTLS without recompiling legacy apps.
  • Use Case: Ideal for a polyglot fleet with shared libraries, offering a uniform implementation of features like retries across different languages.

Quick Start

Deploy a sidecar container alongside your service to implement mTLS and retries across your microservices architecture.

Frequently Asked Questions about sidecar

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement mTLS and retries in microservices without recompiling legacy applications?

The sidecar pattern enables mTLS and retries in microservices by deploying a proxy container alongside legacy apps to handle cross-cutting concerns without recompiling them. It intercepts network traffic to enforce security policies and manage retries uniformly across services.

What is the best way to manage cross-cutting concerns across a polyglot microservices architecture?

Managing cross-cutting concerns across a polyglot architecture is best handled by the sidecar pattern, which offloads tasks like logging, metrics, and secret management from application code. This provides a uniform feature implementation across different programming languages without relying on shared libraries.

Do I need Envoy or Linkerd to use a sidecar pattern for service mesh environments?

You need Envoy, Linkerd, Dapr, or OPA to enable specific sidecar capabilities within service mesh environments. These dependencies provide the necessary data plane functionality to route traffic, enforce mTLS, and execute retry logic for your microservices.

How does the sidecar pattern support service mesh adoption for modernizing legacy apps?

The sidecar pattern supports service mesh adoption by serving as the data plane that intercepts network traffic, enabling modern controls like mTLS for legacy applications. It decouples infrastructure concerns from application code to facilitate seamless modernization.

Can I use Dapr or OPA to handle secret management and security policies with a sidecar?

You can integrate Dapr or OPA with a sidecar architecture to manage secrets and enforce security policies. These dependencies extend the sidecar to standardize cross-cutting concerns across your microservices fleet.

When should I not use a sidecar architecture for microservices?

You should avoid the sidecar architecture when your microservices cannot accommodate the additional resource overhead of a proxy container per pod, or when your application requires direct network routing without an intermediary data plane for traffic management.