Grokking Microservices Design Patterns
Vote

0% completed

​

Sidecar Pattern: An Example

A sidecar is a second process deployed beside an application, sharing its lifecycle and its network. The application does its own work. The sidecar does everything else the call needs.

The test of whether an example shows this pattern is simple. Look at the application code. If it mentions the sidecar, the example is showing something else.

What Gets Moved

Take three services, each written in a different language, calling each other. Every call between them needs the same four things.

  1. A request id, so one user's path through the services can be followed. 2

.....

.....

.....

Like the course? Get enrolled and start learning!
M

Mohit Malviya

· 2 years ago

When app and sidecar will be deployed within same container then how we will be scaling the sidecar and not app otherwise again we need to scale everything like monolithic. If this is deployed separately then this sounds reasonable

Show 2 replies

Reading Progress

0%


Vote for new content