From the course: Microservices: Design Patterns (2020)

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Sidecar pattern

Sidecar pattern

From the course: Microservices: Design Patterns (2020)

Start my 1-month free trial

Sidecar pattern

- [Instructor] The sidecar pattern is used to offload processing of some kind to a separate module. With the sidecar pattern, you deploy the sidecar as a module associated with every applicable microservice in your architecture in order to offload the processing through a single deployment. The sidecar pattern is more about removing repetitive code across services than anything else. The reason that it is helpful in a microservices architecture is things like logging, monitoring and network services can be offloaded to a separate module. So essentially, the problem we are solving is repeating code paths that don't have to be accomplished through repeating code. The details of design is actually very straightforward. You start with the process itself. The key here is that you need to write the module specific enough for your immediate needs while being generic enough for other parts of your system. This really…

Contents