liveBook · Manning

Predictor connection manager

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

A component that registers predictor clients and selects a predictor backend based on a model's algorithm type.

A predictor connection manager coordinates model-serving backends inside a frontend service. It registers predictor clients, looks up model metadata, and selects a backend by algorithm type. section 7.1.3 section 7.2.3

A practical implementation gives the manager several responsibilities:

  • Register each algorithm and its backend properties, including host, port, and technology stack. section 7.1.3
  • Select the backend matching the model metadata's algorithm type before downloading model files or invoking prediction. section 7.1.3

Routing an intent-classification request

A request carrying a model run ID reaches the prediction API. The manager obtains artifact metadata, finds the intent-classification mapping, and selects CustomGrpcPredictorBackend. That client downloads the model from its URL when necessary, registers it with the configured predictor, and sends the document and run ID through gRPC. Adding TorchServe follows the same pattern: register TorchGrpcPredictorBackend, then route models whose metadata identifies TorchServe. section 7.1.3 section 7.2.3

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

How deep it goes
Explains registration, configuration, metadata lookup, caching, model download, and invocation, but defers predictor implementation details.
Examples
Uses intent classification, CustomGrpcPredictorBackend, TorchGrpcPredictorBackend, configuration properties, and prediction gRPC messages.
What it assumes
Assumes frontend-service, model metadata, model artifacts, and gRPC concepts while teaching backend registration and selection.
What you can do after
Build and configure algorithm-to-backend routing with registered clients, model artifact handling, and gRPC prediction calls.
How it connects
Connects frontend services, metadata stores, predictor backends, gRPC, model artifacts, and TorchServe.

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.