Sidecar ¶
- This pattern is named Sidecar because it resembles a sidecar attached to a motorcycle.
- In the pattern, the sidecar is attached to a parent application and provides supporting features for the application. The sidecar also shares the same lifecycle as the parent application, being created and retired alongside the parent. The sidecar pattern is sometimes referred to as the sidekick pattern and is a decomposition pattern.
Why this pattern is needed?
Applications and services often require cross-cutting-concerns functionality, such as monitoring
, logging
, configuration
, and networking services
. These peripheral tasks can be implemented as separate components or services.