liveBook · Manning

Sidecar process

As explained in Kafka for Architects

The sidecar pattern deploys an auxiliary component alongside a primary service component to provide supporting functionality without embedding it in the service.

A sidecar process separates a microservice’s business logic from reusable integration and infrastructure responsibilities. The service runs in one container, while an auxiliary sidecar handles concerns such as encryption, retries, load balancing, auditing, and observability. section 7.1.1

A service mesh uses the sidecar as a proxy:

  • Routes network traffic through the sidecar before it reaches the business-logic container. section 7.1.1
  • Keeps cross-cutting integration logic out of application code. section 7.1.1
  • Uses configurable, reusable components, often supplied as off-the-shelf proxies. section 7.1.1

Microservice with a service-mesh sidecar

A microservice is deployed as two containers: one implements business functionality, and the other provides the proxy and system-level communication behavior. A control plane centrally configures the sidecar containers. section 7.1.1

Figure 7.3 An example of a service mesh architecture. Business logic and integration logic are separated into different containers. All network traffic flows through the sidecar component, which acts as a proxy to the component’s pure business logic.
A diagram of a computer

Description automatically generated with medium confidence

Shows business logic and integration logic separated into containers, with traffic flowing through the sidecar proxy. section 7.1.1

Figure 7.4 Configuring sidecar containers through the control plane
A diagram of a car

Description automatically generated

Shows centralized configuration of sidecar containers through a service-mesh control plane. section 7.1.1

How Kafka for Architects covers it

How deep it goes
Explains containers, proxy traffic flow, responsibilities, reuse, and centralized configuration without covering implementation details.
Examples
Uses a two-container microservice and service-mesh traffic routed through a sidecar proxy.
What you can do after
Operate/configure sidecar responsibilities through a service-mesh control plane.
How it connects
Connects sidecars to service meshes, microservices, proxies, control planes, and Envoy.

Also explained in

Compare how 11 books explain sidecar process →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kafka for Architects. The section links point to the parts of the book it draws on.