Sidecar pattern
Sidecar pattern is an architectural design where you add a service that runs in the background and performs some operations, removing the computational weight from the main application.
Examples of sidecar containers include:
- An agent that reads logs from the primary app container on a shared volume and forwards them to a logging service. -A background process that refreshes a cache used by the primary app container in a shared volume.
Backlinks
Azure Container Apps
You can define **multiple containers** in a single container app to implement the [[sidecar-pattern]]. The containers in a container app share hard disk and network resources and experience the same application lifecycle.
Dapr
Dapr is often used to implement the [[sidecar-pattern]]. The main application communicates with the sidecar via [[gRPC]] or HTTP;