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.
- 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
- 1Deploy the app and sidecar together
- 2Traffic passes through the sidecar
- 3It adds TLS, retries and metrics
- 4The app stays unchanged
Where it is used
Service meshes.
Watch out for
More containers and resource use.