liveBook · Manning

Horizontal scaling

As explained in Distributed Machine Learning Patterns

A scaling technique that increases capacity by adding equivalent service instances or machines rather than enlarging one instance.

Horizontal scaling increases capacity by adding equivalent service instances instead of enlarging one machine. In model serving, replicated stateless servers handle growing request volume without requests interfering with one another. section 4.2.2

A practical model-serving arrangement follows this flow:

  • Keep the model server stateless so each request can be processed independently. section 4.2.2
  • Add exact server replicas with separate addresses as demand increases. section 4.2.2
  • Distribute requests across replicas, allowing them to process model-serving work asynchronously. section 4.2.2
  • Contrast this approach with vertical scaling, which adds computational resources to an existing machine. section 4.2.2

Video inference service

A service receives videos uploaded by users and sends inference requests to several identical model-server replicas. Each replica retrieves the trained model and processes a different request, while a load balancer distributes traffic across the fleet. section 4.2.2

How Distributed Machine Learning Patterns covers it

How deep it goes
Explains statelessness, replica placement, asynchronous processing, and load distribution, but omits detailed implementation configuration.
Examples
Uses video-upload inference, replicated model servers, separate server addresses, and a load-balancer diagram.
What it assumes
Assumes a previously trained model and model-serving workflow, while explaining statelessness and replica-based capacity from the scenario.
What you can do after
Apply it via replicated model-serving services to handle more requests asynchronously.
How it connects
Connects model serving with stateless services, vertical scaling, load balancing, sharded services, and event-driven processing.

Also explained in

Compare how 13 books explain horizontal scaling →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Distributed Machine Learning Patterns. The section links point to the parts of the book it draws on.