liveBook · Manning

Sidecar process

As explained in Designing Deep Learning Systems: A guide for software engineers

A container deployed alongside a primary application container to provide supporting functionality such as adaptation, proxying, or initialization.

A sidecar process runs beside a primary application container, encapsulating adaptation, proxying, and initialization requirements without changing the primary service. section 7.2.7 section 7.4.5

In model serving, the sidecar downloads model files into shared storage, registers the model, translates requests, and forwards them to a black-box inference server. section 7.2.7 section 7.4.5

A sidecar supports deployment by:

  • Keeping the public prediction API and external model storage unchanged while replacing or integrating the backend. section 7.4.5
  • Sharing a volume across server pods to provide a common model repository and reduce repeated downloads and network bandwidth. section 7.2.7 section 7.4.5
  • Letting a load balancer distribute prediction requests across pods without exposing server-specific registration requirements to callers. section 7.2.7
Figure 7.7 Add a proxy container in the TorchServe pod to scale up TorchServe in Kubernetes.

Use the architecture diagram to trace the proxy, TorchServe container, shared model store, and load-balanced pod workflow. section 7.2.7

How Designing Deep Learning Systems: A guide for software engineers covers it

How deep it goes
Explains container responsibilities, shared storage, request flow, model registration, and scaling, but does not provide deployment configuration.
Examples
Uses TorchServe and Triton pods with proxy containers that download, register, and serve models from shared repositories.
What it assumes
Assumes Docker-based containers and a serving system with model storage, prediction requests, and a model server.
What you can do after
Operate/configure an adapter-proxy container that integrates a model server without changing public inference interfaces or external model storage.
How it connects
Connects Kubernetes pods, Docker containers, load balancing, shared volumes, model repositories, TorchServe, Triton, and KServe.

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 Designing Deep Learning Systems: A guide for software engineers. The section links point to the parts of the book it draws on.