Microservices Design Patterns

0% completed

Previous
Next
The Architecture of the Sidecar Pattern

The Containerized Confluence

One of the most distinctive features of the Sidecar Pattern's architecture is its use of containers. The main application and its sidecar are deployed together in the same container, allowing them to share resources and communicate efficiently. This shared environment enables them to operate as a single unit while maintaining their individuality.

Sidecars Galore: A Multifaceted Approach

In the architecture of the Sidecar Pattern, you are not restricted to one sidecar per main application. In fact, you can have multiple sidecars, each addressing a specific functionality. This allows you to modularize your application, making it easier to manage and scale.

Imagine a motorbike equipped with multiple sidecars - one for extra storage, one for an extra passenger, and one equipped with navigation aids. Each sidecar serves a distinct purpose, yet they all contribute to a smooth and efficient ride!

The Network Navigator

In the Sidecar Pattern architecture, the sidecar also plays an instrumental role in network communication. It intercepts all incoming and outgoing network traffic from the main application, effectively acting as a proxy. This means it can handle responsibilities such as load balancing, circuit breaking, and security, leaving the main application free to focus on delivering the primary service.

The Lifespan Link

The sidecar and the main application, while separate entities, share the same lifespan in the Sidecar Pattern architecture. This means they are created, deployed, and destroyed together. This synchronized lifespan ensures that the main application always has its sidecar at its side, ready to serve.

.....

.....

.....

Like the course? Get enrolled and start learning!
Previous
Next