Skip to content
StackDecode
System Design
11. Microservices ArchitectureAnimated

Sidecar Pattern

A helper process deployed beside the main service.

The idea

The sidecar handles logging, proxying or security, so the app code stays simple.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

ClientSidecar AService ASidecar BService BControl plane
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

A helper container runs beside each service.

step:
1/4
at:
Client
1/10

The green dot is a request moving through the system.

Step by step

  1. 1Deploy the app and sidecar together
  2. 2Traffic passes through the sidecar
  3. 3It adds TLS, retries and metrics
  4. 4The app stays unchanged

Where it is used

Service meshes.

Watch out for

More containers and resource use.

Related