Pattern 43 / INFRA

Sidecar Pattern

Use this when adding cross-cutting behavior without modifying the main app.

Pressure
Adding cross-cutting behavior without modifying the main app
Mechanism
Run a helper process next to the workload in the same pod/container group
Toll
Resource overhead and lifecycle coupling with the main service
Architecture plate43
Diagram for Sidecar Pattern
Executive brief

Sidecar Pattern fits when adding cross-cutting behavior without modifying the main app. Mechanism: run a helper process next to the workload in the same pod/container group. Use it for logging agents, proxies, config reloaders, secret sync, and monitoring collectors. The toll: resource overhead and lifecycle coupling with the main service.

Use when

Logging agents, proxies, config reloaders, secret sync, and monitoring collectors.

Example

Log shipper sidecar tails app logs and sends them to storage.

Review framing

Describe the pressure first, then the mechanism, then the cost. That keeps the design grounded.

Same pressure family

Infrastructure Patterns

40CDN (Content Delivery Network)41Reverse Proxy42Service Mesh
โ† 4244 โ†’